Vmotif Generations API
Single image or code generations.
Single image or code 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/vmotif-com:vmotif-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: Vmotif Com Generations API
version: 1.0.0
contact:
name: vmotif
url: https://vmotif.com
description: 'Operations tagged Generations across 2 of this provider''s published API definitions: openapi.json, vmotif-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://vmotif.com/api/v1
description: Production
security:
- BearerAuth: []
tags:
- name: Generations
description: Single image or code generations.
paths:
/generations:
post:
operationId: createGeneration
summary: Create a generation
description: Enqueue an image or code generation. Returns immediately with a job id; poll `GET /generations/{id}` for the result. Requires the `write` scope. Send an `Idempotency-Key` header so a retry after a timeout cannot start (and charge) a second job.
tags:
- Generations
parameters:
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GenerationRequest'
responses:
'202':
description: Job accepted.
headers:
Idempotent-Replayed:
description: '`true` when this response replays an earlier request with the same `Idempotency-Key`.'
schema:
type: string
enum:
- 'true'
content:
application/json:
schema:
$ref: '#/components/schemas/GenerationAccepted'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/InsufficientScope'
'422':
$ref: '#/components/responses/IdempotencyKeyReused'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
servers:
- url: https://vmotif.com/api/v1
description: Production
/generations/{id}:
get:
operationId: getGeneration
summary: Get a generation
description: Poll the status and result of a generation job. Requires the `read` scope.
tags:
- Generations
parameters:
- $ref: '#/components/parameters/GenerationId'
responses:
'200':
description: Current job state.
content:
application/json:
schema:
$ref: '#/components/schemas/GenerationStatus'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
servers:
- url: https://vmotif.com/api/v1
description: Production
components:
parameters:
IdempotencyKey:
name: Idempotency-Key
in: header
required: false
description: 'Makes a retry safe. Send a new value (a UUID works) with each new request and the same value when retrying it: the retry returns the original job or run (`replayed: true`, `Idempotent-Replayed: true`) and nothing new is started or charged. Reusing a key for a different request returns 422 `idempotency_key_reused`. Keys do not expire and share one namespace with the MCP server''s `client_request_id`.'
schema:
type: string
minLength: 1
maxLength: 128
pattern: ^[A-Za-z0-9_.:-]+$
GenerationId:
name: id
in: path
required: true
description: Generation job id returned by `POST /generations`.
schema:
type: string
format: uuid
schemas:
GenerationStatus:
type: object
required:
- id
- status
- result
- error
properties:
id:
type: string
format: uuid
status:
$ref: '#/components/schemas/JobStatus'
result:
oneOf:
- $ref: '#/components/schemas/ImageResult'
- $ref: '#/components/schemas/CodeResult'
- type: 'null'
description: Present once `status` is `completed`.
error:
type:
- string
- 'null'
description: Failure reason when `status` is `failed`.
JobStatus:
type: string
enum:
- pending
- processing
- completed
- failed
CodeLanguage:
type: string
enum:
- text
- tsx
- jsx
- css
- svg
- glsl
- json
- typescript
- javascript
- mdx
- markdown
description: 'Target language for code generations. `svg` and `glsl` are visual: they render in the app rather than showing as plain text. A `glsl` result is a Shadertoy-convention fragment shader (a bare mainImage body; iResolution/iTime/iTimeDelta/iFrame/iMouse are supplied by the harness and must not be redeclared) that also declares 3-5 tunable uniforms annotated in same-line comments, e.g. `uniform float uSpeed; // @range 0.1 4.0 @default 1.0 @label Speed`.'
GenerationRequest:
type: object
required:
- type
- prompt
properties:
type:
type: string
enum:
- image
- code
description: Kind of output. Must be compatible with `model`.
prompt:
type: string
minLength: 1
maxLength: 50000
description: Generation prompt.
model:
type: string
description: Model id from `GET /models`. Defaults to `openai/gpt-image-2` for images and `anthropic/claude-opus-5` for code.
images:
type: array
maxItems: 10
items:
$ref: '#/components/schemas/ImageInput'
description: Reference images (image generations).
textInputs:
type: array
maxItems: 10
items:
$ref: '#/components/schemas/TextInput'
description: Additional text inputs.
aspectRatio:
$ref: '#/components/schemas/AspectRatio'
targetLanguage:
$ref: '#/components/schemas/CodeLanguage'
screenHtml:
type: boolean
default: false
description: Render the code output as a full HTML screen.
ApiError:
type: object
required:
- error
properties:
error:
type: object
required:
- type
- message
properties:
type:
type: string
enum:
- invalid_request
- unauthorized
- insufficient_scope
- rate_limited
- insufficient_quota
- payment_required
- not_found
- idempotency_key_reused
- server_error
description: Stable, machine-readable error category.
message:
type: string
description: Human-readable description.
GenerationAccepted:
type: object
required:
- id
- status
properties:
id:
type: string
format: uuid
status:
$ref: '#/components/schemas/JobStatus'
description: '`pending` for a new job; a replay reports the original job''s current status.'
replayed:
type: boolean
description: True when an `Idempotency-Key` retry returned an earlier request's job instead of starting a new one.
AspectRatio:
type: string
enum:
- '1:1'
- '16:9'
- '9:16'
- '4:3'
- '3:4'
- '3:2'
- '2:3'
description: Output aspect ratio (image generations).
TextInput:
type: object
required:
- content
properties:
content:
type: string
maxLength: 50000
description: Text passed to the model.
label:
type: string
description: Optional label; defaults to `Input N`.
language:
type: string
description: Optional language hint for code inputs.
ImageInput:
type: object
required:
- url
properties:
url:
type: string
description: Reference image as an `https://` URL or a `data:` URI.
mediaType:
type: string
default: image/png
description: MIME type of the image.
CodeResult:
type: object
required:
- type
properties:
type:
type: string
enum:
- code
code:
type:
- string
- 'null'
download_url:
type: string
format: uri
description: Signed link that downloads `code` as a file named for its language. Needs no credentials; a fresh link comes with every poll.
download_expires_at:
type: string
format: date-time
description: When `download_url` stops working (one hour after the poll).
structuredOutput:
description: Parsed structured output when the model returns JSON.
costMicros:
type: number
description: Billed cost in micro-dollars.
warnings:
type: array
items:
type: string
description: Things to tell the user about a finished job, such as a setting the model ignored or a brand that could not be loaded. Absent when there are none.
ImageResult:
type: object
required:
- type
properties:
type:
type: string
enum:
- image
url:
type:
- string
- 'null'
description: Signed URL to the generated image.
mediaType:
type:
- string
- 'null'
aspectRatio:
type: string
costMicros:
type: number
description: Billed cost in micro-dollars.
warnings:
type: array
items:
type: string
description: Things to tell the user about a finished job, such as a setting the model ignored or a brand that could not be loaded. Absent when there are none.
responses:
IdempotencyKeyReused:
description: The `Idempotency-Key` already started a different request. Send a new key.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
PaymentRequired:
description: The key bills to a workspace without an active Team plan, or the owner no longer administers it.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
Unauthorized:
description: Missing, malformed, revoked, or unknown API key.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
NotFound:
description: The resource does not exist or is not owned by the caller.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
InsufficientScope:
description: The key lacks the scope required for this endpoint (write).
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
InvalidRequest:
description: The request was malformed or failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
ServerError:
description: 'An unexpected error (500), or a dependency is unavailable (503): the rate limiter or the `Idempotency-Key` lookup. A 503 started nothing; retry with the same key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
RateLimited:
description: Rate limit or budget exceeded. `insufficient_quota` and `rate_limited` both use 429; a `retry-after` header is set on rate limits.
headers:
retry-after:
schema:
type: integer
description: Seconds until the limit resets.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: 'An API key created in Settings → API, sent as `Authorization: Bearer vmk_live_...`.'
x-refined-from:
- openapi.json
- vmotif-com-openapi.yml
x-provenance:
method: harvested
publisher: Vmotif
source: https://vmotif.com/api/v1/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)