kymaapi-com Video API
The Video API from kymaapi-com — 1 operation(s) for video.
The Video API from kymaapi-com — 1 operation(s) for video.
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/kymaapi-com:kymaapi-com-video-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: Kymaapi Com Video API
version: 1.0.0
contact:
name: Kyma API
url: https://kymaapi.com
email: support@kymaapi.com
license:
name: Proprietary
termsOfService: https://kymaapi.com/terms
description: 'Operations tagged Video across 2 of this provider''s published API definitions: kymaapi-com-openapi.json, kymaapi-com-v1-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://kymaapi.com/v1
description: Production
security:
- BearerAuth: []
tags:
- name: Video
paths:
/videos/generations:
post:
operationId: createVideoGeneration
summary: Create video generation (async)
description: Generate video from a text prompt, optionally conditioned on a starting frame (image-to-video). Asynchronous - returns 202 with a job_id immediately; poll GET /v1/jobs/{id} for the result. Billed per generation; failures are refunded in full.
tags:
- Video
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- model
- prompt
properties:
model:
type: string
description: Video model ID (output modality includes video). See GET /v1/models for the live catalogue; a model that is not being served returns 404 model_not_found.
prompt:
type: string
description: Natural-language description of the video to generate.
duration_s:
type: integer
description: 'Requested clip length in seconds. Allowed values are model-dependent; out-of-range values snap to the nearest supported duration. For kling-avatar-v2-pro it is required and is the length of your audio, rounded up (5 to 60): the clip follows the audio, you are charged for the clip''s real length, and duration_s caps that charge. Audio longer than duration_s is cut at duration_s.'
aspect_ratio:
type: string
description: Output aspect ratio (e.g. 16:9, 9:16, 1:1). Model-dependent; unsupported values fall back to the model default.
image_url:
type: string
description: Optional HTTPS URL of a starting frame for image-to-video models. Omit for pure text-to-video. Required by kling-avatar-v2-pro, where it is the face to animate.
audio_url:
type: string
description: 'kling-avatar-v2-pro only: HTTPS URL of the speech or song to lip-sync, as an uncompressed PCM WAV file (WAV PCM only for now; MP3, M4A, AAC and OGG are refused), at least 5 s. The clip runs as long as this audio and plays it unchanged. Any other model refuses it with 400 invalid_parameter.'
idempotency_key:
type: string
maxLength: 128
description: Deduplication key. Resending the same body with the same key within the retention window returns the existing job (200 with the original VideoJob), not a new charge. Also accepted via the Idempotency-Key header.
extra:
type: object
description: Pass-through to the underlying model. Validated upstream. Never changes a priced field; ignored by kling-avatar-v2-pro.
responses:
'200':
description: Idempotent replay - same idempotency_key returns the existing job
content:
application/json:
schema:
$ref: '#/components/schemas/VideoJob'
'202':
description: Job accepted; poll GET /v1/jobs/{id} for status
content:
application/json:
schema:
$ref: '#/components/schemas/VideoJob'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://kymaapi.com/v1
description: Production
components:
schemas:
PaymentRequired:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- billing_error
description: Always `billing_error`, on every surface.
code:
type: string
enum:
- model_requires_paid
- insufficient_credits
description: The rule that refused.
param:
type: string
nullable: true
retryable:
type: boolean
request_id:
type: string
doc_url:
type: string
type:
type: string
enum:
- error
description: Anthropic-compat envelope marker. Only on /v1/messages.
topup:
type: string
description: Machine top-up endpoint. An agent with a wallet and no human can pay here; it is a hint in the body, never a payment challenge.
example: https://api.kymaapi.com/v1/topup
need_usd:
type: number
description: Worst-case cost of this request, USD. `insufficient_credits` only.
have_usd:
type: number
description: Spendable credit at the moment of the refusal, USD. `insufficient_credits` only.
balance:
type: number
description: Mirror of `details.balance`.
required:
type: number
description: 'Mirror of `details.required`. Zero on `model_requires_paid`: no top-up amount makes a premium model callable on signup credit.'
topup_url:
type: string
description: Billing page for a human. Mirror of `details.topup_url`.
example: https://kymaapi.com/billing
details:
type: object
properties:
balance:
type: number
required:
type: number
topup_url:
type: string
hint:
type: string
endpoint_id:
type: string
description: The model the caller asked for.
description: The nested envelope the media, audio and Anthropic-compat surfaces emit. Read this first; the top-level mirrors exist for older parsers. (/v1/embeddings emits the same envelope for a low balance, but it has its own check rather than this gate, so it carries neither code.)
description: 402 — the access gate refused. `model_requires_paid` (signup credit is a free tier, not the whole catalogue) or `insufficient_credits` (the balance does not cover the request).
VideoJob:
type: object
properties:
id:
type: string
object:
type: string
enum:
- video.job
status:
type: string
enum:
- pending
- processing
- succeeded
- failed
- refunded
- expired
model:
type: string
created_at:
type: string
format: date-time
completed_at:
type: string
nullable: true
format: date-time
output:
type: object
nullable: true
properties:
url:
type: string
description: Vercel Blob URL of the generated video
metadata:
type: object
properties: {}
error:
type: object
nullable: true
properties:
message:
type: string
code:
type: string
estimated_cost:
type: number
nullable: true
description: Hold amount placed at submit time (USD), as the ledger holds it. `null` while the job is queued and nothing is held yet.
charged_amount:
type: number
nullable: true
description: 'Final billed amount (USD) once the hold is released: what a successful job cost, `0` for a failed or refunded one. `null` until then.'
refunded_amount:
type: number
nullable: true
description: The part of the hold returned to your balance (USD) once it is released. `null` until then.
Error:
type: object
properties:
error:
type: object
properties:
message:
type: string
description: 'One sentence: what happened and what to do next.'
type:
type: string
enum:
- invalid_request_error
- authentication_error
- billing_error
- permission_error
- not_found_error
- request_too_large
- rate_limit_error
- timeout_error
- upstream_error
- api_error
description: The category. On /v1/messages, Anthropic's error type for the same condition.
code:
type: string
enum:
- missing_api_key
- invalid_api_key
- invalid_login
- password_reset_required
- invalid_google_token
- permission_denied
- voice_not_owned
- session_required
- csrf_failed
- route_refused
- content_refused
- invalid_json
- missing_parameter
- invalid_parameter
- wrong_endpoint
- unsupported_content
- unsupported_media_type
- request_rejected
- no_speech_detected
- segments_unsupported
- method_not_allowed
- captcha_failed
- invalid_signature
- account_exists
- request_too_large
- request_exceeds_tier_limit
- endpoint_not_found
- endpoint_retired
- model_not_found
- model_retired
- job_not_found
- model_requires_paid
- insufficient_credits
- tier_required
- payment_required
- rate_limit_exceeded
- concurrency_limit_exceeded
- media_rate_exceeded
- queue_full
- too_many_sessions
- too_many_attempts
- signup_paused
- upstream_rate_limited
- provider_unavailable
- model_unavailable
- upstream_invalid_response
- upstream_timeout
- stream_interrupted
- upload_timeout
- media_paused
- service_unavailable
- internal_error
- signup_failed
- settle_failed
description: 'Stable machine code: added, never renamed or removed. Each has an entry at https://docs.kymaapi.com/api-reference/errors'
param:
type: string
nullable: true
description: The request field at fault, or null.
retryable:
type: boolean
description: Whether the same request can succeed if sent again (after `Retry-After`). Also sent as the `x-should-retry` header.
request_id:
type: string
description: Same value as the `x-request-id` header. Quote it to support.
example: req_7f3c2a9e0b1d4c6f8a2e5b7d9c1f3a5e
doc_url:
type: string
description: This code's entry on the errors page.
example: https://docs.kymaapi.com/api-reference/errors#insufficient_credits
required:
- message
- type
- code
required:
- error
description: 'Every error body. On /v1/messages the same object sits in Anthropic''s envelope: `type: "error"` on top, an Anthropic `error.type`, and `request_id` also at the top level.'
responses:
Unauthorized:
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit exceeded
headers:
Retry-After:
description: Seconds until the rate limit resets
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
PaymentRequired:
description: 'Payment required. One gate decides every refusal and `error.code` names the rule that fired: `model_requires_paid` (the account has never deposited and this model is outside the free tier, which `free_tier` on `GET /v1/models` states in advance) or `insufficient_credits` (the balance does not cover the request; `need_usd` and `have_usd` say by how much). `error.type` is `billing_error` on every surface, /v1/messages included. `topup` is the machine endpoint an agent can pay without a human; `topup_url` is the page for a human.'
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentRequired'
examples:
model_requires_paid:
summary: Never funded, premium model — /chat/completions, /completions
value:
topup: https://api.kymaapi.com/v1/topup
balance: 0.5
required: 0
topup_url: https://kymaapi.com/billing
error:
message: This model requires a funded balance. Signup credit covers lower-cost models. Top up at https://kymaapi.com/billing
type: billing_error
code: model_requires_paid
param: null
retryable: false
doc_url: https://docs.kymaapi.com/api-reference/errors#model_requires_paid
details:
balance: 0.5
required: 0
topup_url: https://kymaapi.com/billing
hint: Top up at https://kymaapi.com/billing to continue, or POST https://api.kymaapi.com/v1/topup to pay without one
endpoint_id: claude-fable-5.1
insufficient_credits:
summary: Balance below the worst case — /chat/completions, /completions
value:
need_usd: 0.012562
have_usd: 0.0004
topup: https://api.kymaapi.com/v1/topup
balance: 0.0004
required: 0.012562
topup_url: https://kymaapi.com/billing
error:
message: This request needs about $0.01 of credit; you have $0.0004. Top up at https://kymaapi.com/billing or lower max_tokens.
type: billing_error
code: insufficient_credits
param: null
retryable: false
doc_url: https://docs.kymaapi.com/api-reference/errors#insufficient_credits
details:
balance: 0.0004
required: 0.012562
topup_url: https://kymaapi.com/billing
hint: Top up at least $0.02 to run this model — a human can top up at https://kymaapi.com/billing, or POST https://api.kymaapi.com/v1/topup to pay without one
endpoint_id: deepseek-v3
model_requires_paid_messages:
summary: Never funded, premium model — /messages (Anthropic-compat envelope)
value:
type: error
topup: https://api.kymaapi.com/v1/topup
balance: 0.5
required: 0
topup_url: https://kymaapi.com/billing
error:
message: This model requires a funded balance. Signup credit covers lower-cost models. Top up at https://kymaapi.com/billing
type: billing_error
code: model_requires_paid
param: null
retryable: false
doc_url: https://docs.kymaapi.com/api-reference/errors#model_requires_paid
details:
balance: 0.5
required: 0
topup_url: https://kymaapi.com/billing
hint: Top up at https://kymaapi.com/billing to continue, or POST https://api.kymaapi.com/v1/topup to pay without one
endpoint_id: claude-fable-5.1
model_requires_paid_media:
summary: Never funded, premium SKU — media and audio surfaces (D3 envelope)
value:
topup: https://api.kymaapi.com/v1/topup
balance: 0.5
required: 0
topup_url: https://kymaapi.com/billing
error:
message: 'gpt-image-2 is not in the free tier; add credits to use it. Free-tier media: gemini-3.5-transcribe, gpt-4o-mini-transcribe-2025-12-15, gpt-transcribe, minimax-image-01, whisper-v3-turbo.'
type: billing_error
code: model_requires_paid
param: null
retryable: false
doc_url: https://docs.kymaapi.com/api-reference/errors#model_requires_paid
details:
balance: 0.5
required: 0
topup_url: https://kymaapi.com/billing
hint: Top up at https://kymaapi.com/billing to continue, or POST https://api.kymaapi.com/v1/topup to pay without one
endpoint_id: gpt-image-2
insufficient_credits_media:
summary: Balance below the job estimate — media and audio surfaces (D3 envelope)
value:
need_usd: 0.054
have_usd: 0.01
topup: https://api.kymaapi.com/v1/topup
balance: 0.01
required: 0.054
topup_url: https://kymaapi.com/billing
error:
message: This request needs about $0.05 of credit; you have $0.01. Top up at https://kymaapi.com/billing.
type: billing_error
code: insufficient_credits
param: null
retryable: false
doc_url: https://docs.kymaapi.com/api-reference/errors#insufficient_credits
details:
balance: 0.01
required: 0.054
topup_url: https://kymaapi.com/billing
hint: Top up at least $0.06 to run this model — a human can top up at https://kymaapi.com/billing, or POST https://api.kymaapi.com/v1/topup to pay without one
endpoint_id: gpt-image-2
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: Kyma API key (starts with ky-) or session token (starts with ks-)
x-refined-from:
- kymaapi-com-openapi.json
- kymaapi-com-v1-openapi.json