Ludo.ai Account API
Read the authenticated account, submit feedback, manage the CLI key, and purchase credit top-ups.
Read the authenticated account, submit feedback, manage the CLI key, and purchase credit top-ups.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ludo-ai:ludo-ai-account-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
version: 0.9.10
title: Ludo.ai Account API
description: "The Ludo.ai API enables you to generate game assets programmatically, including images, videos, 3D models, spritesheets, and audio.\n\n# Getting Started\n\n## Base URL\nAll API requests should be made to: `https://api.ludo.ai/api`\n\n## Authentication\nInclude your API key in the `Authorization` header:\n```\nAuthorization: ApiKey YOUR_API_KEY\n```\n\n## Models\nPick from the current models for any new integration:\n\n- `hydra` (Hydra) - Best motion and prompt adherence.\n- `griffin-hd` (Griffin) - Cinematic videos in any style, with audio, 768p.\n- `ignis` (Ignis) - Cheapest alternative, for simple body shapes and simple actions.\n- `ignis-pixel` (Ignis Pixel) - Best for low-res pixel art animations\n\nWhich models each action accepts (in preference order):\n\n- sprite animation: `hydra`, `griffin-hd`, `ignis`, `ignis-pixel`\n- motion transfer: `hydra`, `ignis`, `ignis-pixel`\n- spritesheet editing: `hydra`, `griffin-hd`\n- new view: `hydra`\n- video generation: `griffin-hd`, `ignis`\n- references to video: `griffin-hd`\n- video editing: `griffin-hd`\n\n**Legacy models** are still accepted so existing integrations keep working, but they are scheduled for removal - do not use them for new work:\n\n- `hydra-plus` (Hydra+) - legacy since 2026-11-02\n- `blitz` (Blitz) - legacy since 2026-09-17\n- `eagle` (Eagle) - legacy since 2026-09-17\n- `eagle-audio` (Eagle with Audio) - legacy since 2026-09-17\n- `forge` (Forge) - legacy since 2026-11-16\n- `forge-pixel` (Forge Pixel) - legacy since 2026-11-16\n- `tango` (Tango) - legacy since 2026-09-17\n\nEach generation endpoint lists its own models, rates and durations in its `model` parameter description.\n\n## Timeout\nGeneration requests return `202` immediately (see below) and hold no connection open while the work runs. If you opt into a synchronous response with `async: false`, include a generous timeout (at least 20 minutes): the call is held for at most 15 minutes, and past that you receive `202` with the job instead of an error and resume with `GET /assets/jobs/{id}`.\n\n## Documentation\n`GET /docs/search?query=...` searches Ludo's feature guides with a plain-language\nquestion and returns the few sections that answer it (each names a `doc` and\n`section`). `GET /docs` lists every document and section, and `GET /docs?doc=...`\nreads one in full. Both are free (no credits) and rate-limited: 60 requests per 5 minutes\nand 1000 per day for search, 150 per 5 minutes for reading. Read the relevant guide before\nyour first call to a generator: it explains modes, models, margins and known limitations.\n\n## Async Usage\nGeneration endpoints are asynchronous: you submit the work, get a job id back, and\ncollect the result when it is ready. Nothing is held open while a GPU runs.\n\n1. **Submit** the generation. The API responds immediately with\n `202 { id, status: \"queued\" }`.\n2. **Poll** `GET /assets/jobs/{id}` until `status` is `succeeded` or `failed`.\n Non-terminal responses carry `poll_after_ms` - wait at least that long before the\n next poll. Better still, long-poll: `GET /assets/jobs/{id}?wait=30` holds the\n request up to 30 s (max 60) and returns the moment the job finishes.\n3. **Read** `result` - it is exactly the response documented for that operation. On a\n failure, read `error` instead.\n\n`GET /assets/jobs` lists your recent jobs, and `DELETE /assets/jobs/{id}` cancels one\nthat has not finished yet (credits are refunded).\n\nJob-status endpoints are rate-limited to 150 requests per 5 minutes per API key; a\n`429` carries `Retry-After`. Each account may have up to 50 generations queued or\nrunning at once via the API; a request beyond that returns `429` (code\n`PENDING_JOBS_LIMIT`) - wait for jobs to finish, then submit again.\n\n### Synchronous responses (deprecated)\nPassing `async: false` in the payload opts into a synchronous response: the call blocks\nuntil the result is ready and returns it as the response body. This is deprecated, but\nthe opt-out is permanent and stays supported.\n\nSynchronous calls run on the same queue: the response carries an `X-Ludo-Job-Id`\nheader, and if the job is still running after 15 minutes you receive `202` with the job\ninstead of an error - resume with `GET /assets/jobs/{id}`.\n\nThe legacy `request_id` + `GET /assets/{type}/results` flow keeps working unchanged.\n\n### Legacy results endpoints\nEach asset type still has a results endpoint:\n- `GET /assets/images/results` - images\n- `GET /assets/sprites/results` - spritesheets\n- `GET /assets/videos/results` - videos\n- `GET /assets/audio/results` - audio\n- `GET /assets/3d-models/results` - 3D models\n\nResults are available for 7 days and return the 100 most recent API-generated assets. The `request_id` query parameter is optional - omit it to list all recent results.\n\n## Directional Sprites\nDirectional Sprites render one 3D model as sprites seen from up to 8 directions that line up. The calls go in this order:\n1. *(Optional)* `POST /assets/3d-model/image` (create3DModelImage): a character image from a `prompt`, or your own `image` redrawn as a 3D render (the prompt then says what to change). Call again for another try.\n2. `POST /assets/3d-model` (create3DModel) with that image and `rig: true`, for a rigged GLB. A model you already have can be rigged with `POST /assets/3d-model/rig` (rigModel).\n *(Optional)* accessories - a sword, a gun, a shield, a helmet, a backpack: an item GLB (create3DModel, no rig) held by a bone of the model. `POST /assets/sprite/directional-accessory-fit` (fitDirectionalAccessory, free) fits one automatically for its `kind` and answers previews, numeric `checks` and a `placement`; call it again with `size`, `move` and `turn` (relative to the automatic fit) until it looks right. Then `POST /assets/sprite/directional-accessories` (attachDirectionalAccessories, free) with every item's placement: its `model_url` is the model holding them, to pass as `model` below.\n3. *(Optional)* an animation, at most one: a `preset_id` from `GET /assets/sprite/animation-presets` (listAnimationPresets), an `animation_id` from `POST /assets/animation` (createAnimation, a move generated from a text prompt) or `GET /assets/animations` (listMyAnimations), or an `animation_url` made for this model by animate3DModelPreset or animate3DModel. With none, the sprites are a still pose.\n4. `GET /assets/sprite/directional-styles` (listDirectionalSpriteStyles, free): pick a `style_id` and its `style_params`.\n5. `POST /assets/sprite/directional-preview` (previewDirectionalSprites, free and synchronous): check the look from the directions you want. One preview at a time; a newer one cancels yours.\n6. `POST /assets/sprite/directional` (createDirectionalSprites) for one spritesheet per direction, or `POST /assets/sprite/directional-stills` (createDirectionalStills) for one large image per direction. Pass the GLB as `model`, the animation, the style and up to 8 `directions`.\n\nRead the full guide with `GET /docs?doc=directional-sprites`.\n\n## Asset URL Expiration\nAll generated asset URLs (images, spritesheets, videos, audio, 3D models) are temporary and expire after **7 days**. If you need to keep an asset, download it before it expires.\n\n## Request Format\n- Use `Content-Type: application/json` for all requests\n- All responses are returned in JSON format\n\n## Credits\nEach API call consumes credits from your account. The credit cost varies by endpoint and is documented in each endpoint's description.\n\n> **Note:** All API requests consume credits, even if your subscription includes unlimited credits for the web application. Check your account dashboard for your current API credit balance.\n"
x-logo:
url: /static/logo-small.png
altText: Logo
x-model-lineup: 'Current models: hydra (Hydra) - Best motion and prompt adherence. griffin-hd (Griffin) - Cinematic videos in any style, with audio, 768p. ignis (Ignis) - Cheapest alternative, for simple body shapes and simple actions. ignis-pixel (Ignis Pixel) - Best for low-res pixel art animations. Per action - sprite animation: hydra, griffin-hd, ignis, ignis-pixel; motion transfer: hydra, ignis, ignis-pixel; spritesheet editing: hydra, griffin-hd; new view: hydra; video generation: griffin-hd, ignis; references to video: griffin-hd; video editing: griffin-hd. LEGACY models, still accepted but scheduled for removal - do not use them for new work: hydra-plus, blitz, eagle, eagle-audio, forge, forge-pixel, tango.'
servers:
- url: /api
tags:
- name: Account
paths:
/assets/account:
get:
description: Show your account's credit balance, plan and auto top-up settings. `credits.available` is what generations can spend right now (plan_credits + extra - used); `resets_at` is when the plan's monthly credits refill (unix seconds). When `team_pool` is true the balance is your team's shared pool, and `auto_topup` is null because the team owner manages it. Check this before an expensive generation instead of waiting for a 402. Auto top-up is changed in the web app at `billing_url`. This is a free read-only lookup (no credits, no generation). Requires an API key (user scope).
tags:
- Account
operationId: getAccount
security:
- ApiKey: []
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/AccountInfo'
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl -X GET \"https://api.ludo.ai/api/assets/account\" \\\n -H \"Authorization: ApiKey YOUR_API_KEY\""
- lang: JavaScript
label: JavaScript
source: "const response = await fetch(\"https://api.ludo.ai/api/assets/account\", {\n headers: {\n \"Authorization\": \"ApiKey YOUR_API_KEY\"\n }\n});\n\nconst data = await response.json();\nconsole.log(data);"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.get(\n \"https://api.ludo.ai/api/assets/account\",\n headers={\"Authorization\": \"ApiKey YOUR_API_KEY\"}\n)\n\nprint(response.json())"
/assets/topup/quote:
get:
description: 'The price of a credit top-up (extra credits that stay while the plan is active) on your plan, and the one-time Link (`link-cli`) spend request to pay it without a browser. `credits` goes in steps between min_credits and max_credits. Free, read-only. Buying: createTopupLink (a payment page for the user to pay), or payTopup with a Link token. Never buy credits the user did not ask for. Requires an API key (user scope).'
tags:
- Account
operationId: getTopupQuote
security:
- ApiKey: []
parameters:
- name: credits
in: query
required: true
example: 1000
schema:
type: integer
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/TopupQuote'
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl -X GET \"https://api.ludo.ai/api/assets/topup/quote?credits=1000\" \\\n -H \"Authorization: ApiKey YOUR_API_KEY\""
- lang: JavaScript
label: JavaScript
source: "const response = await fetch(\"https://api.ludo.ai/api/assets/topup/quote?credits=1000\", {\n headers: {\n \"Authorization\": \"ApiKey YOUR_API_KEY\"\n }\n});\n\nconst data = await response.json();\nconsole.log(data);"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.get(\n \"https://api.ludo.ai/api/assets/topup/quote?credits=1000\",\n headers={\"Authorization\": \"ApiKey YOUR_API_KEY\"}\n)\n\nprint(response.json())"
/assets/topup/link:
post:
description: 'Buy extra credits: a Stripe payment page for that many credits, for the user to open and pay (show them the checkout_url). Nothing is charged until they pay, never the card saved on the account, and the credits are added the moment they do; getTopupLink says when. One page is open at a time (replace: true ends the open one). Use it when the user is out of credits and asks to buy more. Free to call. Requires an API key (user scope).'
tags:
- Account
operationId: createTopupLink
security:
- ApiKey: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TopupLinkPayload'
required: true
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/TopupLink'
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: A payment page is already open, or the account cannot use one
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl -X POST \"https://api.ludo.ai/api/assets/topup/link\" \\\n -H \"Authorization: ApiKey YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"credits\":1000}'"
- lang: JavaScript
label: JavaScript
source: "const response = await fetch(\"https://api.ludo.ai/api/assets/topup/link\", {\n method: \"POST\",\n headers: {\n \"Authorization\": \"ApiKey YOUR_API_KEY\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n \"credits\": 1000\n })\n});\n\nconst data = await response.json();\nconsole.log(data);"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.post(\n \"https://api.ludo.ai/api/assets/topup/link\",\n headers={\n \"Authorization\": \"ApiKey YOUR_API_KEY\",\n \"Content-Type\": \"application/json\"\n },\n json={\n \"credits\": 1000\n }\n)\n\nprint(response.json())"
/assets/topup/link/{session_id}:
get:
description: 'Where a payment page from createTopupLink is: open (not paid yet), paid (credits on their way), completed (the credits are in the account) or expired (never paid). Free, read-only. Requires an API key (user scope).'
tags:
- Account
operationId: getTopupLink
security:
- ApiKey: []
parameters:
- name: session_id
in: path
required: true
schema:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/TopupLinkStatus'
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl -X GET \"https://api.ludo.ai/api/assets/topup/link/{session_id}\" \\\n -H \"Authorization: ApiKey YOUR_API_KEY\""
- lang: JavaScript
label: JavaScript
source: "const response = await fetch(\"https://api.ludo.ai/api/assets/topup/link/{session_id}\", {\n headers: {\n \"Authorization\": \"ApiKey YOUR_API_KEY\"\n }\n});\n\nconst data = await response.json();\nconsole.log(data);"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.get(\n \"https://api.ludo.ai/api/assets/topup/link/{session_id}\",\n headers={\"Authorization\": \"ApiKey YOUR_API_KEY\"}\n)\n\nprint(response.json())"
/assets/topup/pay:
post:
description: 'Buy extra credits with a one-time Link Shared Payment Token (spt_...) the user approved in Link for exactly the amount getTopupQuote gives; when it answers "completed" the credits are in the account ("paid": they are on their way). For agents that run Link''s CLI; otherwise use createTopupLink. A token buys one top-up. Only when the user asked for the credits and approved the payment. Without a payment_token it answers 402 with a Machine Payments Protocol challenge for the credits (WWW-Authenticate: Payment, method stripe), which `link-cli mpp pay` pays: the credential goes in the Payment-Authorization header, the API key stays in Authorization. Requires an API key (user scope).'
tags:
- Account
operationId: payTopup
x-mcp-description: 'Buy extra credits with a one-time Link Shared Payment Token (spt_...) the user approved in Link for exactly the amount getTopupQuote gives; when it answers "completed" the credits are in the account ("paid": they are on their way). For agents that run Link''s CLI; otherwise use createTopupLink. A token buys one top-up, and payment_token is required here. Only when the user asked for the credits and approved the payment.'
x-mcp-required:
- payment_token
security:
- ApiKey: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TopupPayPayload'
required: true
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/TopupPaid'
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: 'No payment_token: a Machine Payments Protocol challenge (WWW-Authenticate: Payment, application/problem+json). Otherwise the token or credential was declined, or is not for the quoted amount.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: A top-up is in progress, or the token was used
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl -X POST \"https://api.ludo.ai/api/assets/topup/pay\" \\\n -H \"Authorization: ApiKey YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"credits\":1000}'"
- lang: JavaScript
label: JavaScript
source: "const response = await fetch(\"https://api.ludo.ai/api/assets/topup/pay\", {\n method: \"POST\",\n headers: {\n \"Authorization\": \"ApiKey YOUR_API_KEY\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n \"credits\": 1000\n })\n});\n\nconst data = await response.json();\nconsole.log(data);"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.post(\n \"https://api.ludo.ai/api/assets/topup/pay\",\n headers={\n \"Authorization\": \"ApiKey YOUR_API_KEY\",\n \"Content-Type\": \"application/json\"\n },\n json={\n \"credits\": 1000\n }\n)\n\nprint(response.json())"
/assets/cli-key:
delete:
description: Revoke the key making this call, when it was created by a browser login. Other API keys are managed in the web app. Free. Requires an API key (user scope).
tags:
- Account
operationId: revokeCurrentCliKey
x-mcp-exclude: true
security:
- ApiKey: []
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/OkResponse'
'400':
description: Not a browser-login key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl -X DELETE \"https://api.ludo.ai/api/assets/cli-key\" \\\n -H \"Authorization: ApiKey YOUR_API_KEY\""
- lang: JavaScript
label: JavaScript
source: "const response = await fetch(\"https://api.ludo.ai/api/assets/cli-key\", {\n headers: {\n \"Authorization\": \"ApiKey YOUR_API_KEY\"\n }\n});\n\nconst data = await response.json();\nconsole.log(data);"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.delete(\n \"https://api.ludo.ai/api/assets/cli-key\",\n headers={\"Authorization\": \"ApiKey YOUR_API_KEY\"}\n)\n\nprint(response.json())"
/assets/feedback:
post:
description: 'Report a problem with the Ludo API itself to the Ludo team. Use it ONLY for API bugs (an error, a failed or stuck job, a crash, a response that does not match this documentation) and API limitations (a parameter, operation or format you needed that the API does not support, and that you could not work around). NEVER use it to report model limitations or the quality of a result: an image, sprite, animation, 3D model, video or sound that looks wrong, ignores part of the prompt, has artifacts or is not what you wanted is not an API bug. Do not report those; retry with a different prompt, model or settings instead. Before reporting a limitation, call searchDocs with what you tried: if the docs already describe it as a known limitation, do not report it. Describe what you were trying to do and what went wrong, and name the operation it relates to. Always send the id of every job the report is about, in job_ids (up to 10): we look at those jobs'' inputs and outputs, and a report about a result we cannot find cannot be investigated. Do not include personal data, secrets or file contents. Send one report per issue, and if you are an agent, tell the user what you sent. Free (no credits). Requires an API key (user scope).'
tags:
- Account
operationId: submitApiFeedback
security:
- ApiKey: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ApiFeedbackPayload'
required: true
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ApiFeedbackReceipt'
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl -X POST \"https://api.ludo.ai/api/assets/feedback\" \\\n -H \"Authorization: ApiKey YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"category\":\"limitation\",\"message\":\"string\"}'"
- lang: JavaScript
label: JavaScript
source: "const response = await fetch(\"https://api.ludo.ai/api/assets/feedback\", {\n method: \"POST\",\n headers: {\n \"Authorization\": \"ApiKey YOUR_API_KEY\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n \"category\": \"limitation\",\n \"message\": \"string\"\n })\n});\n\nconst data = await response.json();\nconsole.log(data);"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.post(\n \"https://api.ludo.ai/api/assets/feedback\",\n headers={\n \"Authorization\": \"ApiKey YOUR_API_KEY\",\n \"Content-Type\": \"application/json\"\n },\n json={\n \"category\": \"limitation\",\n \"message\": \"string\"\n }\n)\n\nprint(response.json())"
components:
schemas:
TopupLink:
type: object
properties:
checkout_url:
type: string
example: <url>
session_id:
type: string
credits:
type: integer
amount:
type: number
format: float
currency:
type: string
expires_in:
type: integer
TopupLinkStatus:
type: object
properties:
status:
type: string
description: 'open: not paid yet. paid: paid, credits on their way. completed: the credits are in. expired: never paid.'
enum:
- open
- paid
- completed
- expired
example: open
credits:
type: integer
checkout_url:
type: string
example: <url>
invoice_id:
type: string
TopupLinkPayload:
type: object
required:
- credits
properties:
credits:
type: integer
example: 1000
replace:
type: boolean
description: End the account's open top-up page first (one may be open at a time).
TopupPayPayload:
type: object
required:
- credits
properties:
credits:
type: integer
example: 1000
payment_token:
type: string
maxLength: 256
description: A one-time Link Shared Payment Token (spt_...) for exactly the quoted amount. Leave it out to pay over MPP instead (a 402 challenge, then the credential in Payment-Authorization).
OkResponse:
type: object
properties:
ok:
type: boolean
ApiFeedbackReceipt:
type: object
properties:
ok:
type: boolean
id:
type: string
ApiFeedbackPayload:
type: object
description: Payload for reporting a bug, limitation or missing capability to Ludo
required:
- category
- message
properties:
category:
type: string
enum:
- limitation
- bug
- feature_request
- praise
- other
description: 'bug - the API errored, a job failed or got stuck, or a response did not match the documentation; limitation - the API does not support a parameter, operation or format you needed; feature_request - a new API capability you would like; praise - something that worked well; other - any other API issue. Generated content that looks wrong or does not match the prompt is a model limitation, not a bug: do not report it. A limitation the docs already describe (check with searchDocs) is known: do not report it.'
example: limitation
message:
type: string
minLength: 1
maxLength: 4000
description: What you were trying to do, what happened, and what would have helped.
operation:
type: string
maxLength: 100
description: The operation the feedback is about, e.g. animateSprite.
job_id:
type: string
maxLength: 64
description: The id of the job the feedback is about. Same as a one-item job_ids.
job_ids:
type: array
maxItems: 10
items:
type: string
maxLength: 64
description: 'The ids of the jobs the feedback is about (returned by each generation call; also in getApiJob and listApiJobs). Send them whenever a job is involved: every job that shows the problem, plus the one that worked if you are comparing.'
agent:
type: string
maxLength: 100
description: The agent or app sending it, e.g. Claude Code.
TopupPaid:
type: object
properties:
status:
type: string
description: 'completed: the credits are in. paid: the money is taken and the credits are on their way.'
enum:
- completed
- paid
example: completed
credits:
type: integer
amount:
type: number
format: float
currency:
type: string
invoice_id:
type: string
payment_intent_id:
type: string
description: The Stripe payment that charged the token (none when the account's Stripe balance covered it).
extra_credits:
type: number
format: float
description: The account's extra (top-up) credits after this one.
AccountInfo:
type: object
properties:
credits:
type: object
properties:
available:
type: number
format: float
description: Credits generations can spend right now.
plan_credits:
type: number
format: float
description: The plan's credits for the current cycle.
used:
type: number
format: float
description: Plan credits used this cycle.
extra:
type: number
format: float
description: Credits from top-ups and grants, on top of the plan.
resets_at:
type: integer
format: int64
description: When the plan credits refill (unix seconds).
team_pool:
type: boolean
description: The balance is a team's shared pool.
paused:
type: boolean
grace_until:
type: integer
format: int64
description: Set when the subscription ended; remaining credits stay spendable until then (unix seconds).
plan:
type: object
properties:
name:
type: string
api_access:
type: boolean
auto_topup:
type: object
description: Null for team members; the team owner manages auto top-up.
properties:
enabled:
type: boolean
threshold:
type: number
format: float
description: An automatic top-up is bought when available credits drop below this.
credits:
type: integer
description: Credits bought on each automatic top-up.
billing_url:
type: string
description: Web page to buy credits, change plan or change auto top-up.
example: <url>
ErrorResponse:
type: object
properties:
message:
type: string
metadata:
type: string
error_payload:
type: string
intent:
type: object
description: Stripe intent details sent with 3D Secure (406) errors
properties:
id:
type: string
type:
type: string
enum:
- payment
- setup
example: payment
client_secret:
type: string
TopupQuote:
type: object
properties:
credits:
type: integer
amount:
type: number
format: float
description: The price, in the currency's main unit, on the account's plan.
amount_minor:
type: integer
description: The price in minor units, as Link's --amount takes it.
currency:
type: string
tier:
type: string
min_credits:
type: integer
max_credits:
type: integer
step_credits:
type: integer
network_id:
type: string
test_mode:
type: boolean
link_cli_command:
type: string
description: The one-time spend request to create with Link's CLI.
securitySchemes:
ApiKey:
type: apiKey
name: Authorization
in: header
description: 'For accessing the API a valid API Key token must be passed in all the queries in
the ''Authorization'' header.
The following syntax must be used in the ''Authorization'' header: ApiKey xxxxxx.yyyyyyy.zzzzzz
'
x-provenance:
method: harvested
publisher: Ludo.ai
source: https://api.ludo.ai/api-documentation/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)