# ModAPI agent handbook

Connect a model client with a **project API key**. To give an assistant access to your account, create a **personal access token** (management key). You can create up to 20 management keys per account, choose permissions and an expiry for each, and revoke one when its job ends. [Compare the two keys](https://modapi.ai/agent/account.md#credentials).

**Pay $100 and get up to $330 in LLM credit with Campaign 01.** On a $100 top-up with $100 paid, $100 goes to your LLM wallet. You receive a $200 reward code, plus a $30 code if your social submission is approved and the reward is issued. Redeem both yourself to reach $330, or give an unused reward code to someone else. Its value goes to the person who redeems it. [See the offer and gifting example](https://modapi.ai/agent/billing-campaigns.md#rewards).

## What are you trying to do?

- [Evaluate ModAPI for a project](https://modapi.ai/agent/overview.md) — Match your application's inputs and outputs to an interface.
- [Choose a model and estimate cost](https://modapi.ai/agent/models.md) — Compare protocols, groups, limits and billing units.
- [Make a first request](https://modapi.ai/agent/quickstart.md) — List available models, then send one small request with cURL, Python or Node.js.
- [Look up an API](https://modapi.ai/agent/api-reference.md) — Find the request method, credential, required scope and result to verify.
- [Give an assistant account access](https://modapi.ai/agent/account.md) — Scope the token to the owner's task and set an expiry.
- [Configure a project key](https://modapi.ai/agent/keys-routing.md) — Set model limits, routing, budget and expiry for one deployment.
- [Compare wallets and top-up offers](https://modapi.ai/agent/billing-campaigns.md) — Work out what you can spend on text, media or both.
- [Trace a charge or retrieve a file](https://modapi.ai/agent/tasks-usage.md) — Follow an existing request from submission to output and settlement.
- [Connect a client](https://modapi.ai/agent/integrations.md) — Configure an SDK, Claude Code or an existing application.
- [Diagnose a failed request](https://modapi.ai/agent/troubleshooting.md) — Identify the failing step and the next check.
- [Review data and service policies](https://modapi.ai/agent/policies.md) — Find the terms for a workload, purchase or support request.

## Choose the right access

**Exploring as a visitor.** Start with the [model catalog](https://modapi.ai/pricing), [API documentation](https://modapi.ai/docs/) and [current campaigns](https://modapi.ai/campaigns). Comparing a model's supported interface and pricing takes no key. An assistant helping someone evaluate the service can usually finish the job here. Include the price source and the assumptions behind an estimate so the user can check the calculation.

**Connecting a model client.** A model API key belongs in the client's secret store. Use it to list models available to that key, then use the selected protocol for inference. An OpenAI-compatible SDK takes the base URL `https://modapi.ai/v1`. An Anthropic client has a different configuration. Get the model name from the returned IDs, including punctuation. Before the first generation, agree on the model, group and budget. A model listing is enough to check discovery; it cannot demonstrate streaming, tools or successful billing.

**Helping an account owner.** Give a usage monitor a management key with `usage:read` and a finance assistant a separate one with `wallet:read`. If the finance integration ends, revoke its token; the usage monitor keeps working. The owner chooses the permissions for each token under [Security & Access](https://modapi.ai/security).

## Follow the evidence for the job

For **model selection**, compare the same workload under each candidate. A lower input price can still yield a higher total if the application generates long answers. For **routing**, check the group the account can select, the models the project key can use and the interface the application speaks. Keep these three checks distinct. For **media**, read the model-specific submission and retrieval instructions before promising an output format or completion time.

For **payments**, open the offer for the intended wallet. Write down the principal, payment after discounts, first reward and any conditional reward separately. Only redeemed codes belong in the available balance. If someone wants to generate video as well as run text calls, show how much of the example they could spend on each workload. Leave checkout with the account owner.

For **changes**, agree on one target and an observable result. For example, to give a staging service a dedicated key, record the staging model, allowed group, cap and expiry; create that key once; read its settings back before replacing the client's configuration. For an interrupted operation, look up the existing order, key or task first. A timeout can leave a successful operation on the server.

## Three common starting points

**A team migrating a coding assistant.** Find out which protocol the installed client sends. Compare compatible models in the group the team intends to use. List the chosen model with the project's key. Show the owner the URL, model and secret reference that will change before switching a shared configuration.

**A team planning a media budget.** Pick one representative output length and resolution. Identify the model's billing unit, estimate the job and compare main-wallet credit under the multimedia and mixed-use offers. Keep any LLM-only reward separate when estimating how many videos that budget can fund.

**An owner investigating a failed job.** Start from its task ID, submission time and timezone. Check whether a result was produced, whether the file is retrievable, and whether the account shows a reserve or a final charge. An assistant can investigate those questions without creating another job.

## Read this guide in a client

Fetch [the Markdown index](https://modapi.ai/agent/index.md), then follow the topic or section needed for the current question. Browsers can open the same material as linked pages. [Discovery links](https://modapi.ai/llms.txt) lead to other public resources. Each guide gives a review date. Retrieve current prices, campaign terms, available models and account balances from their respective sources at the time of the decision.

---

Reviewed 2026-11-21 · Edition 2 · English · [Canonical page](https://modapi.ai/agent/)
