Create API key
create_keyStep 1 of the first job. Free, no sign-in, works without a key: creates an AwesomeVideo API key and returns token once with 5 free starter credits (enough for the 8 s sample, no challenge needed; if today's starters are used up you get 0 and a welcomeChallenge instead). Use the key right away in this same session by adding "api_key": "" to the arguments of every next call (no reconnect), or send Authorization: Bearer from your MCP client config. Step 2 (only if welcomeCredits is 0), free trial while it runs: call create_key again with {api_key, challenge, nonce} (find an integer nonce so SHA-256(challenge + ":" + nonce) starts with bits zero bits, about 1-3 s; python and javascript solvers included) to claim 10 welcomeCredits for that key (no second key; caption_video and transcribe only, jobs up to 2 min, valid 30 days; one per network and per network operator per day, released in slots; welcomeCreditsReason tells why when 0, slot_wait has nextSlotAt). Step 3: the result's firstJob is the next call, caption_video {sourceUrl: "https://awesomevideoeditor.com/samples/cc0-interview-es.mp4"}: the 8 s sample costs 2 credits. Without credits, paid tools return 402 with a checkoutUrl ($5 = 500 credits, 1 credit = 1 cent).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional label, e.g. the agent's name. | |
| nonce | No | Solution: SHA-256(challenge + ":" + nonce) starts with welcomeChallenge.bits zero bits. | |
| api_key | No | Only for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared. | |
| challenge | No | welcomeChallenge.challenge from a previous create_key (or GET /v1/keys/challenge). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Key record: id, name, tokenPrefix. | |
| next | No | Suggested next calls (e.g. create_checkout (without product)). | |
| token | No | The API key (av_live_...). Shown once: store it and send it as Authorization: Bearer <token>. | |
| message | No | What to do next. | |
| balanceCents | No | Starting balance in credits (0). |