Kuro Uploads API
The Uploads API from Kuro — 4 operation(s) for uploads.
The Uploads API from Kuro — 4 operation(s) for uploads.
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-uploads-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 Uploads 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: Uploads
paths:
/v1/uploads:
post:
operationId: createUpload
summary: Start an upload
description: 'Reserves an upload and answers with where to PUT the bytes. PUT them with every `upload_headers` entry, then call `POST /v1/uploads/{id}/complete`.
Permission: `generation.write`.'
tags:
- Uploads
parameters:
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
filename:
type: string
minLength: 1
maxLength: 220
mime_type:
type: string
minLength: 1
maxLength: 120
description: Such as "image/png" or "video/mp4".
bytes:
type: integer
exclusiveMinimum: 0
checksum_sha256:
type: string
pattern: ^[0-9a-f]{64}$
description: Hex SHA-256 of the bytes, checked when the upload completes.
required:
- filename
- mime_type
- bytes
responses:
'201':
description: Start an upload
content:
application/json:
schema:
$ref: '#/components/schemas/UploadTicket'
'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/uploads/{id}/complete:
post:
operationId: completeUpload
summary: Finish an upload
description: 'Checks the bytes against what was declared and answers with the upload, ready to use as a reference.
Permission: `generation.write`.'
tags:
- Uploads
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
checksum_sha256:
type: string
pattern: ^[0-9a-f]{64}$
width:
type: integer
exclusiveMinimum: 0
height:
type: integer
exclusiveMinimum: 0
responses:
'200':
description: Finish an upload
content:
application/json:
schema:
$ref: '#/components/schemas/Upload'
'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/uploads/import:
post:
operationId: importUpload
summary: Import a file from a URL
description: 'Fetches a file and stores it as a verified upload. Only hosts the server allows are fetched; otherwise use `POST /v1/uploads`.
Permission: `generation.write`.'
tags:
- Uploads
parameters:
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type: string
format: uri
description: A file on a host this server is allowed to fetch from (`MEDIA_IMPORT_ALLOWED_HOSTS`).
filename:
type: string
minLength: 1
maxLength: 220
mime_type:
type: string
minLength: 1
maxLength: 120
required:
- url
responses:
'201':
description: Import a file from a URL
content:
application/json:
schema:
$ref: '#/components/schemas/Upload'
'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/uploads/{id}:
get:
operationId: getUpload
summary: Read an upload
description: 'One upload.
Permission: `media.read`.'
tags:
- Uploads
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Read an upload
content:
application/json:
schema:
$ref: '#/components/schemas/Upload'
'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:
Upload:
type: object
properties:
object:
type: string
enum:
- upload
id:
type: string
format: uuid
filename:
type: string
type:
type: string
enum:
- image
- video
- audio
mime_type:
type: string
bytes:
type: integer
status:
type: string
enum:
- pending
- verified
- rejected
- expired
description: Only a `verified` upload can be used in a generation.
url:
type: string
format: uri
description: A signed link to the file, for about an hour.
thumbnail_url:
type:
- string
- 'null'
format: uri
reference:
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: Pass this where a request takes media.
created_at:
type: string
format: date-time
required:
- object
- id
- filename
- type
- mime_type
- bytes
- status
- url
- thumbnail_url
- reference
- created_at
description: A file you brought into Kuro.
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.
UploadTicket:
type: object
properties:
object:
type: string
enum:
- upload_ticket
upload_id:
type: string
format: uuid
upload_url:
type: string
format: uri
description: PUT the file's bytes here.
upload_headers:
type: object
additionalProperties:
type: string
description: 'Send every one of these on the PUT, exactly as given: they are signed into the URL.'
expires_at:
type: string
format: date-time
required:
- object
- upload_id
- upload_url
- upload_headers
- expires_at
description: Where to send a file's bytes. Then call `POST /v1/uploads/{id}/complete`.
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.