Kuro Generations API
The Generations API from Kuro — 3 operation(s) for generations.
The Generations API from Kuro — 3 operation(s) for generations.
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/meetkuro-com:meetkuro-com-generations-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:
title: Kuro Generations API
version: 1.0.0
description: 'Make images, clips, voice-overs and music, and run recipes, from your own code. The same API serves Kuro Cloud and every studio you run yourself.
Authenticate with a personal token from Settings → Connections: `Authorization: Bearer KR_…`. A token minted with permissions works only here and at `/mcp`, and each operation names the permission it needs.
Generations run on your own provider keys at no credits when you hold one that can run them, exactly as in the app; otherwise they spend credits.
Webhooks: pass `webhook_url` (HTTPS) when you make a generation or run a recipe, and the server POSTs a `WebhookEvent` there when it settles: `generation.ready` or `generation.failed`, `run.done` or `run.failed`, and `run.asks_you` when a run waits on you. Each POST carries `webhook-id`, `webhook-timestamp` and `webhook-signature` (Standard Webhooks, HMAC-SHA256 with the signing secret from Settings → Connections); verify it, answer 2xx within ten seconds, and treat a repeated `webhook-id` as the same event. A refused or unanswered event is retried for a day.
Inside v1 changes are additive only: new fields, new operations, and new values in enums whose description says so. Ignore what you do not recognise.'
license:
name: AGPL-3.0-only
url: https://www.gnu.org/licenses/agpl-3.0.html
servers:
- url: https://api.meetkuro.com
security:
- token: []
tags:
- name: Generations
paths:
/v1/quotes:
post:
operationId: createQuote
summary: Price a request
description: 'What a generation or a recipe run would cost and who would pay, compared with the balance. Creates nothing.
Permission: `generation.write`.'
tags:
- Generations
parameters: []
requestBody:
required: true
content:
application/json:
schema:
anyOf:
- type: object
properties:
type:
type: string
enum:
- image
prompt:
type: string
maxLength: 2000
default: ''
model:
type: string
maxLength: 80
description: Defaults to the server's default image model.
aspect_ratio:
type: string
maxLength: 12
description: Such as "9:16", "1:1" or "16:9". Defaults to 9:16, snapped to what the model offers.
setting:
type: string
maxLength: 40
description: The model's one extra setting (`setting` on `GET /v1/models/{id}`), such as its quality.
references:
type: array
items:
$ref: '#/components/schemas/MediaReference'
maxItems: 16
description: Pictures the model can see. The model's `max_reference_images` applies.
subjects:
type: array
items:
type: string
minLength: 1
maxLength: 120
maxItems: 4
description: Names or ids of your Subjects. Kuro brings each one's face and description, so do not also attach pictures of them.
runs_on:
type: string
maxLength: 40
description: 'Who pays: "credits", or the vendor of one of your own keys ("replicate", "fal", …). Leave out to follow the payer order set in Settings → Agents.'
required:
- type
- type: object
properties:
type:
type: string
enum:
- clip
prompt:
type: string
maxLength: 4000
default: ''
model:
type: string
maxLength: 80
description: Defaults to the server's default clip model.
duration_seconds:
type: integer
minimum: -1
maximum: 60
description: One of the model's `duration.values`; -1 lets a model that supports it choose.
resolution:
type: string
maxLength: 12
aspect_ratio:
type: string
maxLength: 12
description: 'Defaults to 9:16. Leave out with a `first_frame`: the clip takes the frame''s shape.'
generate_audio:
type: boolean
first_frame:
$ref: '#/components/schemas/MediaReference'
description: A picture, clip or sound you already have in Kuro.
last_frame:
$ref: '#/components/schemas/MediaReference'
description: A picture, clip or sound you already have in Kuro.
reference_images:
type: array
items:
$ref: '#/components/schemas/MediaReference'
maxItems: 9
reference_videos:
type: array
items:
$ref: '#/components/schemas/MediaReference'
maxItems: 3
description: A take to copy motion from, or to re-sync a mouth in.
reference_audios:
type: array
items:
$ref: '#/components/schemas/MediaReference'
maxItems: 3
subjects:
type: array
items:
type: string
minLength: 1
maxLength: 120
maxItems: 4
description: Names or ids of your Subjects. Kuro brings each one's face and description, so do not also attach pictures of them.
runs_on:
type: string
maxLength: 40
description: 'Who pays: "credits", or the vendor of one of your own keys ("replicate", "fal", …). Leave out to follow the payer order set in Settings → Agents.'
required:
- type
- type: object
properties:
type:
type: string
enum:
- voiceover
text:
type: string
minLength: 1
maxLength: 4000
description: The words to speak.
subject:
type: string
minLength: 1
maxLength: 120
description: A Subject whose bound voice reads it. Then leave out model, voice, style_prompt and language_code.
model:
type: string
maxLength: 80
voice:
type: string
minLength: 1
maxLength: 120
description: A voice id from the model's `voices`.
style_prompt:
type: string
maxLength: 4000
description: How to say it, on models that take one.
language_code:
type: string
minLength: 2
maxLength: 35
speed:
type: number
minimum: 0.1
maximum: 5
emotion:
type: string
maxLength: 40
runs_on:
type: string
maxLength: 40
description: 'Who pays: "credits", or the vendor of one of your own keys ("replicate", "fal", …). Leave out to follow the payer order set in Settings → Agents.'
required:
- type
- text
- type: object
properties:
type:
type: string
enum:
- music
prompt:
type: string
minLength: 1
maxLength: 4000
description: 'The brief: genre, mood, instruments, tempo.'
model:
type: string
maxLength: 80
lyrics:
type: string
minLength: 1
maxLength: 3500
instrumental:
type: boolean
description: Defaults to true when there are no lyrics.
runs_on:
type: string
maxLength: 40
description: 'Who pays: "credits", or the vendor of one of your own keys ("replicate", "fal", …). Leave out to follow the payer order set in Settings → Agents.'
required:
- type
- prompt
- type: object
properties:
prompt:
type: string
maxLength: 4000
default: ''
description: The idea, in the words the recipe's `prompt` asks for.
inputs:
type: object
additionalProperties: {}
default: {}
description: 'By key. On an `arm` or `reprompt` recipe, each of its `inputs` takes a list of media (`{ "type": "upload", "upload_id" }`, `{ "type": "generation", "generation_id" }`) or one Subject (`{ "type": "subject", "subject_id" }`). On a `run` recipe, each of its `run_inputs` takes the value its type asks for.'
choices:
type: object
additionalProperties:
anyOf:
- type: string
- type: array
items:
type: string
default: {}
description: One option `value` per choice, by key; a list where `max_picks` is above one.
model:
type: string
maxLength: 80
description: Another model of the recipe's medium. Not for `run` recipes.
runs_on:
type: string
maxLength: 40
description: 'Who pays: "credits", or the vendor of one of your own keys ("replicate", "fal", …). Leave out to follow the payer order set in Settings → Agents.'
type:
type: string
enum:
- recipe
recipe_id:
type: string
format: uuid
required:
- type
- recipe_id
description: 'The body `POST /v1/generations` takes, or a recipe run as `{ "type": "recipe", "recipe_id", … }` with the body `POST /v1/recipes/{id}/runs` takes.'
responses:
'200':
description: Price a request
content:
application/json:
schema:
$ref: '#/components/schemas/Quote'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'402':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
/v1/generations:
post:
operationId: createGeneration
summary: Make an image, clip, voice-over or music
description: 'Starts one generation. It spends credits, or runs on your own provider key: your provider bills you, and Kuro charges no credits. Pass `wait` to hold the response until it is ready (images usually are within a minute); otherwise read it with `GET /v1/generations/{id}`.
Permission: `generation.write`.'
tags:
- Generations
parameters:
- name: wait
in: query
required: false
description: Hold the response up to this many seconds until the work settles. 0 answers at once.
schema:
type: integer
minimum: 0
maximum: 60
default: 0
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/ImageRequest'
- $ref: '#/components/schemas/ClipRequest'
- $ref: '#/components/schemas/VoiceoverRequest'
- $ref: '#/components/schemas/MusicRequest'
description: What to make. `type` decides which fields apply.
responses:
'201':
description: Make an image, clip, voice-over or music
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'402':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
get:
operationId: listGenerations
summary: List generations
description: 'Your generations, newest first.
Permission: `media.read`.'
tags:
- Generations
parameters:
- name: type
in: query
required: false
schema:
type: string
enum:
- image
- clip
- voiceover
- music
- name: status
in: query
required: false
schema:
type: string
enum:
- queued
- generating
- ready
- failed
- name: q
in: query
required: false
description: Search titles, prompts and tags.
schema:
type: string
maxLength: 200
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 20
- name: cursor
in: query
required: false
description: The `next_cursor` of the page before.
schema:
type: string
maxLength: 500
responses:
'200':
description: List generations
content:
application/json:
schema:
type: object
properties:
object:
type: string
enum:
- list
data:
type: array
items:
$ref: '#/components/schemas/Generation'
next_cursor:
type:
- string
- 'null'
description: Pass as `cursor` for the next page; null on the last one.
required:
- object
- data
- next_cursor
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'402':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
/v1/generations/{id}:
get:
operationId: getGeneration
summary: Read a generation
description: 'One generation. Pass `wait` to hold the response until it is `ready` or `failed`.
Permission: `media.read`.'
tags:
- Generations
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
- name: wait
in: query
required: false
description: Hold the response up to this many seconds until the work settles. 0 answers at once.
schema:
type: integer
minimum: 0
maximum: 60
default: 0
responses:
'200':
description: Read a generation
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'402':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
delete:
operationId: deleteGeneration
summary: Delete a generation
description: 'Deletes it and its files. One still working is cancelled first.
Permission: `generation.write`.'
tags:
- Generations
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Delete a generation
content:
application/json:
schema:
type: object
properties:
object:
type: string
enum:
- generation
id:
type: string
format: uuid
deleted:
type: boolean
enum:
- true
required:
- object
- id
- deleted
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'402':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
components:
schemas:
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: A stable machine-readable code, such as `INSUFFICIENT_CREDITS` or `RATE_LIMITED`.
message:
type: string
details: {}
required:
- code
- message
required:
- error
description: Every error has this shape.
VoiceoverRequest:
type: object
properties:
type:
type: string
enum:
- voiceover
text:
type: string
minLength: 1
maxLength: 4000
description: The words to speak.
subject:
type: string
minLength: 1
maxLength: 120
description: A Subject whose bound voice reads it. Then leave out model, voice, style_prompt and language_code.
model:
type: string
maxLength: 80
voice:
type: string
minLength: 1
maxLength: 120
description: A voice id from the model's `voices`.
style_prompt:
type: string
maxLength: 4000
description: How to say it, on models that take one.
language_code:
type: string
minLength: 2
maxLength: 35
speed:
type: number
minimum: 0.1
maximum: 5
emotion:
type: string
maxLength: 40
runs_on:
type: string
maxLength: 40
description: 'Who pays: "credits", or the vendor of one of your own keys ("replicate", "fal", …). Leave out to follow the payer order set in Settings → Agents.'
webhook_url:
type: string
maxLength: 2048
format: uri
description: Where to POST a signed event when this settles. HTTPS on the default port; see Webhooks in the API description.
required:
- type
- text
Generation:
type: object
properties:
object:
type: string
enum:
- generation
id:
type: string
format: uuid
type:
type: string
enum:
- image
- clip
- voiceover
- music
- tool
description: What was made. New values may be added; treat an unknown one as opaque.
status:
type: string
enum:
- queued
- generating
- ready
- failed
description: '`ready` and `failed` are final.'
model:
type: string
description: The model id it was made with (`GET /v1/models`).
prompt:
type: string
aspect_ratio:
type:
- string
- 'null'
description: Null for audio.
output_url:
type:
- string
- 'null'
format: uri
description: The finished file, once `ready`. A signed link that works for about an hour; read the generation again for a fresh one.
thumbnail_url:
type:
- string
- 'null'
format: uri
description: A small still of the result, for a grid. Null for audio and while it works.
credits:
type:
- number
- 'null'
description: Credits charged. Zero when your own provider key or the free allowance paid.
paid_by:
type:
- string
- 'null'
description: 'Who paid: "credits", "house" (the free allowance), "server" (a server that charges nothing), or the vendor of your own key ("replicate", "fal", …).'
error:
type:
- string
- 'null'
description: Why it failed. Null otherwise.
ready_in_seconds:
type:
- number
- 'null'
description: Roughly how long an unfinished generation has left; 0 means past its usual time.
recipe_id:
type:
- string
- 'null'
format: uuid
description: The recipe it was made with, if any.
created_at:
type: string
format: date-time
app_url:
type: string
format: uri
description: Opens it in the app.
required:
- object
- id
- type
- status
- model
- prompt
- aspect_ratio
- output_url
- thumbnail_url
- credits
- paid_by
- error
- ready_in_seconds
- recipe_id
- created_at
- app_url
description: One image, clip, voice-over or piece of music.
Quote:
type: object
properties:
object:
type: string
enum:
- quote
credits:
type: number
description: What it would cost, in credits.
paid_by:
type:
- string
- 'null'
description: 'Who would pay: "credits", "house", "server", or the vendor of your own key.'
estimated_cost_usd:
type:
- number
- 'null'
description: What your own provider account would be charged, when your key pays.
available_credits:
type: number
affordable:
type: boolean
description: Whether it can run now.
aspect_ratio:
type:
- string
- 'null'
blocked:
type:
- object
- 'null'
properties:
vendor:
type: string
reason:
type: string
required:
- vendor
- reason
description: Why the payer named in `runs_on` cannot take it.
required:
- object
- credits
- paid_by
- estimated_cost_usd
- available_credits
- affordable
- aspect_ratio
- blocked
description: A price, before anything is spent.
MediaReference:
anyOf:
- type: object
properties:
type:
type: string
enum:
- upload
upload_id:
type: string
format: uuid
required:
- type
- upload_id
- type: object
properties:
type:
type: string
enum:
- generation
generation_id:
type: string
format: uuid
required:
- type
- generation_id
description: A picture, clip or sound you already have in Kuro.
ClipRequest:
type: object
properties:
type:
type: string
enum:
- clip
prompt:
type: string
maxLength: 4000
default: ''
model:
type: string
maxLength: 80
description: Defaults to the server's default clip model.
duration_seconds:
type: integer
minimum: -1
maximum: 60
description: One of the model's `duration.values`; -1 lets a model that supports it choose.
resolution:
type: string
maxLength: 12
aspect_ratio:
type: string
maxLength: 12
description: 'Defaults to 9:16. Leave out with a `first_frame`: the clip takes the frame''s shape.'
generate_audio:
type: boolean
first_frame:
$ref: '#/components/schemas/MediaReference'
description: A picture, clip or sound you already have in Kuro.
last_frame:
$ref: '#/components/schemas/MediaReference'
description: A picture, clip or sound you already have in Kuro.
reference_images:
type: array
items:
$ref: '#/components/schemas/MediaReference'
maxItems: 9
reference_videos:
type: array
items:
$ref: '#/components/schemas/MediaReference'
maxItems: 3
description: A take to copy motion from, or to re-sync a mouth in.
reference_audios:
type: array
items:
$ref: '#/components/schemas/MediaReference'
maxItems: 3
subjects:
type: array
items:
type: string
minLength: 1
maxLength: 120
maxItems: 4
description: Names or ids of your Subjects. Kuro brings each one's face and description, so do not also attach pictures of them.
runs_on:
type: string
maxLength: 40
description: 'Who pays: "credits", or the vendor of one of your own keys ("replicate", "fal", …). Leave out to follow the payer order set in Settings → Agents.'
webhook_url:
type: string
maxLength: 2048
format: uri
description: Where to POST a signed event when this settles. HTTPS on the default port; see Webhooks in the API description.
required:
- type
ImageRequest:
type: object
properties:
type:
type: string
enum:
- image
prompt:
type: string
maxLength: 2000
default: ''
model:
type: string
maxLength: 80
description: Defaults to the server's default image model.
aspect_ratio:
type: string
maxLength: 12
description: Such as "9:16", "1:1" or "16:9". Defaults to 9:16, snapped to what the model offers.
setting:
type: string
maxLength: 40
description: The model's one extra setting (`setting` on `GET /v1/models/{id}`), such as its quality.
references:
type: array
items:
$ref: '#/components/schemas/MediaReference'
maxItems: 16
description: Pictures the model can see. The model's `max_reference_images` applies.
subjects:
type: array
items:
type: string
minLength: 1
maxLength: 120
maxItems: 4
description: Names or ids of your Subjects. Kuro brings each one's face and description, so do not also attach pictures of them.
runs_on:
type: string
maxLength: 40
description: 'Who pays: "credits", or the vendor of one of your own keys ("replicate", "fal", …). Leave out to follow the payer order set in Settings → Agents.'
webhook_url:
type: string
maxLength: 2048
format: uri
description: Where to POST a signed event when this settles. HTTPS on the default port; see Webhooks in the API description.
required:
- type
MusicRequest:
type: object
properties:
type:
type: string
enum:
- music
prompt:
type: string
minLength: 1
maxLength: 4000
description: 'The brief: genre, mood, instruments, tempo.'
model:
type: string
maxLength: 80
lyrics:
type: string
minLength: 1
maxLength: 3500
instrumental:
type: boolean
description: Defaults to true when there are no lyrics.
runs_on:
type: string
maxLength: 40
description: 'Who pays: "credits", or the vendor of one of your own keys ("replicate", "fal", …). Leave out to follow the payer order set in Settings → Agents.'
webhook_url:
type: string
maxLength: 2048
format: uri
description: Where to POST a signed event when this settles. HTTPS on the default port; see Webhooks in the API description.
required:
- type
- prompt
parameters:
IdempotencyKey:
name: Idempotency-Key
in: header
required: false
description: Any string up to 255 characters. Send the same value to retry a request without spending twice; a different body under a used key is refused with 409.
schema:
type: string
minLength: 1
maxLength: 255
responses:
Error:
description: The request was refused. `error.code` is stable; on 429, wait `Retry-After` seconds.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
token:
type: http
scheme: bearer
description: A personal token (`KR_…`) from Settings → Connections.