Hedra Run a model API

One typed submit endpoint per image, video and audio model — titled `Run ()`, so the model you know by name is the operation you call. Every one returns the same `202` job envelope; track it under Jobs. `POST /models/{model}` is the same call with the id supplied at runtime and `input` untyped — use it for a model your client was generated before, or one you looked up in `GET /models`. A chat model (`modality: text` in `GET /models`) runs on `POST /chat/completions` instead, which answers with the completion itself in the OpenAI chat-completions format, not a job.

Operations 114

POST /models/creatify-aurora Run Creatify Aurora (creatify-aurora) #
POST /models/dreamina-31 Run Dreamina 3.1 (dreamina-31) #
POST /models/elevenlabs-audio-isolation Run ElevenLabs Audio Isolation (elevenlabs-audio-isolation) #
POST /models/elevenlabs-english-sts-v2 Run ElevenLabs English STS V2 (elevenlabs-english-sts-v2) #
POST /models/elevenlabs-flash-multilingual-v2 Run ElevenLabs Flash Multilingual V2 (elevenlabs-flash-multilingual-v2) #
POST /models/elevenlabs-flash-v2 Run ElevenLabs Flash V2 (elevenlabs-flash-v2) #
POST /models/elevenlabs-multilingual-sts-v2 Run ElevenLabs Multilingual STS V2 (elevenlabs-multilingual-sts-v2) #
POST /models/elevenlabs-multilingual-v2 Run ElevenLabs Multilingual V2 (elevenlabs-multilingual-v2) #
POST /models/elevenlabs-music Run ElevenLabs Music (elevenlabs-music) #
POST /models/elevenlabs-sound-effects Run ElevenLabs Sound Effects (elevenlabs-sound-effects) #
POST /models/elevenlabs-v3 Run ElevenLabs V3 (elevenlabs-v3) #
POST /models/elevenlabs-voice-clone Run ElevenLabs Voice Clone (elevenlabs-voice-clone) #
POST /models/eyeline-id-relight Run Eyeline ID Relight (eyeline-id-relight) #
POST /models/eyeline-id-restyle Run Eyeline ID Restyle (eyeline-id-restyle) #
POST /models/flux-11-pro Run Flux 1.1 Pro (flux-11-pro) #
POST /models/flux-11-ultra Run Flux 1.1 Ultra (flux-11-ultra) #
POST /models/flux-3 Run FLUX.3 (flux-3) #
POST /models/flux-3-video-upscaler-creative Run FLUX.3 Video Upscaler Creative (flux-3-video-upscaler-creative) #
POST /models/flux-3-video-upscaler-precise Run FLUX.3 Video Upscaler Precise (flux-3-video-upscaler-precise) #
POST /models/flux-dev Run Flux Dev (flux-dev) #
POST /models/flux-kontext-max Run Flux Kontext Max (flux-kontext-max) #
POST /models/flux-kontext-pro Run Flux Kontext Pro (flux-kontext-pro) #
POST /models/flux2-flex Run Flux.2 [flex] (flux2-flex) #
POST /models/flux2-klein-9b Run Flux.2 [klein] 9B (flux2-klein-9b) #
POST /models/flux2-max Run Flux.2 [max] (flux2-max) #
POST /models/flux2-pro Run Flux.2 [pro] (flux2-pro) #
POST /models/gemini-omni-flash Run Gemini Omni Flash (gemini-omni-flash) #
POST /models/gemini-omni-flash-11 Run Gemini Omni 1.1 Flash (gemini-omni-flash-11) #
POST /models/gpt-image-15 Run GPT Image 1.5 (gpt-image-15) #
POST /models/gpt-image-2 Run GPT Image 2 (gpt-image-2) #
POST /models/gpt-image-2.5-flare Run GPT Image 2.5 Flare (gpt-image-2.5-flare) #
POST /models/gpt-image-2.5-sunburst Run GPT Image 2.5 Sunburst (gpt-image-2.5-sunburst) #
POST /models/grok-imagine Run Grok Imagine (grok-imagine) #
POST /models/grok-imagine-20 Run Grok Imagine 2.0 (grok-imagine-20) #
POST /models/grok-video Run Grok Video (grok-video) #
POST /models/happy-horse Run Happy Horse (happy-horse) #
POST /models/hedra-avatar Run Hedra Avatar (hedra-avatar) #
POST /models/hedra-character-3 Run Hedra Character 3 (hedra-character-3) #
POST /models/heygen-photo-avatar-4 Run HeyGen Photo Avatar 4 (heygen-photo-avatar-4) #
POST /models/hidream-o1-image Run HiDream-O1-Image (hidream-o1-image) #
POST /models/ideogram-v4 Run Ideogram V4 (ideogram-v4) #
POST /models/ideogram-v4-5 Run Ideogram V4.5 (ideogram-v4-5) #
POST /models/imagen3 Run Imagen3 (imagen3) #
POST /models/imagen4 Run Imagen4 (imagen4) #
POST /models/kling-16 Run Kling 1.6 (kling-16) #
POST /models/kling-21-master Run Kling 2.1 Master (kling-21-master) #
POST /models/kling-25-turbo Run Kling 2.5 Turbo (kling-25-turbo) #
POST /models/kling-26-motion-control Run Kling 2.6 Motion Control (kling-26-motion-control) #
POST /models/kling-26-pro Run Kling 2.6 Pro (kling-26-pro) #
POST /models/kling-ai-avatar-v2 Run Kling AI Avatar v2 (kling-ai-avatar-v2) #
POST /models/kling-o1 Run Kling O1 (kling-o1) #
POST /models/kling-o3 Run Kling O3 (kling-o3) #
POST /models/kling-o3-edit Run Kling O3 Edit (kling-o3-edit) #
POST /models/kling-o3-reference Run Kling O3 Reference (kling-o3-reference) #
POST /models/kling-v3 Run Kling V3 (kling-v3) #
POST /models/kling-v3-motion-control Run Kling V3 Motion Control (kling-v3-motion-control) #
POST /models/krea-2 Run Krea 2 (krea-2) #
POST /models/krea-3 Run Krea 3 (krea-3) #
POST /models/ltx-2-3 Run LTX-2.3 (ltx-2-3) #
POST /models/ltx-2-5 Run LTX-2.5 (ltx-2-5) #
POST /models/luma-ray-32 Run Luma Ray 3.2 (luma-ray-32) #
POST /models/mai-image-2-5 Run MAI-Image-2.5 (mai-image-2-5) #
POST /models/minimax-h3 Run MiniMax H3 (minimax-h3) #
POST /models/minimax-h3-max Run MiniMax H3 Max (minimax-h3-max) #
POST /models/minimax-h3-max-camera-controls Run MiniMax H3 Max Camera Controls (minimax-h3-max-camera-controls) #
POST /models/minimax-h3-max-turbo Run MiniMax H3 Max Turbo (minimax-h3-max-turbo) #
POST /models/minimax-hailuo-02 Run MiniMax Hailuo-02 (minimax-hailuo-02) #
POST /models/minimax-hailuo-23 Run MiniMax Hailuo 2.3 (minimax-hailuo-23) #
POST /models/minimax-speech-25-hd-preview Run MiniMax Speech-2.5 HD Preview (minimax-speech-25-hd-preview) #
POST /models/minimax-speech-25-turbo-preview Run MiniMax Speech-2.5 Turbo Preview (minimax-speech-25-turbo-preview) #
POST /models/muse-image Run Muse Image (muse-image) #
POST /models/nano-banana Run Nano Banana (nano-banana) #
POST /models/nano-banana-2 Run Nano Banana 2 (nano-banana-2) #
POST /models/nano-banana-2.1 Run Nano Banana 2.1 (nano-banana-2.1) #
POST /models/nano-banana-pro Run Nano Banana Pro (nano-banana-pro) #
POST /models/omnihuman-15 Run Omnihuman 1.5 (omnihuman-15) #
POST /models/omnihuman-20 Run Omnihuman 2.0 (omnihuman-20) #
POST /models/pixverse-v6 Run PixVerse V6 (pixverse-v6) #
POST /models/qwen-image-2 Run Qwen Image 2.0 (qwen-image-2) #
POST /models/qwen-image-2-1 Run Qwen Image 2.1 (qwen-image-2-1) #
POST /models/recraft-v3 Run Recraft V3 (recraft-v3) #
POST /models/reve-21 Run Reve 2.1 (reve-21) #
POST /models/reve-21-edit Run Reve 2.1 Edit (reve-21-edit) #
POST /models/reve-21-remix Run Reve 2.1 Remix (reve-21-remix) #
POST /models/sana Run Sana (sana) #
POST /models/seedance-15-pro Run Seedance 1.5 Pro (seedance-15-pro) #
POST /models/seedance-20 Run Seedance 2.0 (seedance-20) #
POST /models/seedance-20-mini Run Seedance 2.0 Mini (seedance-20-mini) #
POST /models/seedance-25 Run Seedance 2.5 (seedance-25) #
POST /models/seedream-40 Run Seedream 4.0 (seedream-40) #
POST /models/seedream-45 Run Seedream 4.5 (seedream-45) #
POST /models/seedream-50-lite Run Seedream 5.0 Lite (seedream-50-lite) #
POST /models/seedream-50-pro Run Seedream 5.0 Pro (seedream-50-pro) #
POST /models/topaz-image-upscaler Run Topaz Gigapixel (topaz-image-upscaler) #
POST /models/topaz-image-upscaler-transparency Run Topaz Transparency (topaz-image-upscaler-transparency) #
POST /models/topaz-image-upscaler-wonder Run Topaz Wonder (topaz-image-upscaler-wonder) #
POST /models/topaz-video-upscaler Run Topaz Proteus (topaz-video-upscaler) #
POST /models/topaz-video-upscaler-hyperion-2-5 Run Topaz Hyperion 2.5 HDR (topaz-video-upscaler-hyperion-2-5) #
POST /models/topaz-video-upscaler-starlight-fast Run Topaz Starlight Fast (topaz-video-upscaler-starlight-fast) #
POST /models/topaz-video-upscaler-starlight-hq Run Topaz Starlight HQ (topaz-video-upscaler-starlight-hq) #
POST /models/topaz-video-upscaler-starlight-precise Run Topaz Starlight Precise (topaz-video-upscaler-starlight-precise) #
POST /models/veed-fabric-10 Run VEED Fabric 1.0 (veed-fabric-10) #
POST /models/veed-video-background-removal Run VEED Video Background Removal (veed-video-background-removal) #
POST /models/veo-2 Run Veo 2 (veo-2) #
POST /models/veo-3 Run Veo 3 (veo-3) #
POST /models/veo-31 Run Veo 3.1 (veo-31) #
POST /models/vidu-q3 Run Vidu Q3 (vidu-q3) #
POST /models/vidu-q3-reference Run Vidu Q3 Reference (vidu-q3-reference) #
POST /models/wan-2-7 Run Wan 2.7 (wan-2-7) #
POST /models/wan-3-0 Run Wan 3.0 (wan-3-0) #
POST /models/{model} Run a model by id #
POST /chat/completions Create a chat completion #
POST /responses Create a model response #
POST /anthropic/v1/messages Create a message #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/hedra:hedra-run-a-model-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API 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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

hedra-run-a-model-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hedra API v3 Run a model API
  description: 'Generate images, video, and audio with over 100 models through one API. Fund your wallet, then every model runs through the same three requests: submit a job, poll it, download the output. Browse the model catalog to pick one.


    **Authenticate** every request with your API key — create one in the developer console: `Authorization: Key :`.


    **Fund the API wallet** before your first call. It is prepaid and held in US dollars, it is separate from your Hedra Studio balance, and a workspace starts with **$0.00** in it; nothing you buy or hold in Studio moves money into it. Until it is funded, every generation is refused with `402 INSUFFICIENT_BALANCE`; uploading inputs with `POST /files` is free and works on an empty wallet, so you can stage a request and only meet the gate at submit. Add funds in the developer console, and read the wallet any time with `GET /balance`.


    **Quickstart** — submit a job, poll it, then read the output URL:


    ```bash

    # 1. Submit — capture the job id from the 202 ack

    JOB_ID=$(curl -sS -X POST https://api.hedra.com/v3/models/gpt-image-2 \

    -H "Authorization: Key $HEDRA_KEY" \

    -H "Content-Type: application/json" \

    -d ''{"input": {"prompt": "a space cat", "quality": "medium", "aspect_ratio": "1:1", "resolution": "1K"}}'' | jq -r .job_id)


    # 2. Poll until status is COMPLETED (or FAILED)

    curl https://api.hedra.com/v3/jobs/$JOB_ID/status -H "Authorization: Key $HEDRA_KEY"


    # 3. Read the result — outputs[].url holds the generated file

    curl https://api.hedra.com/v3/jobs/$JOB_ID -H "Authorization: Key $HEDRA_KEY"

    ```


    **Follow a job without polling** — a video model can run for minutes, so the loop above suits fast image jobs and little else. Submit with a `webhook` URL and Hedra delivers the finished result there, ed25519-signed and retried; set `PUT /webhooks/default` once to cover every job that names no URL of its own, and see *Webhooks* for the signature scheme and the retry ladder. To watch one job live instead, open `GET /jobs/{job_id}/stream` — Server-Sent Events carrying every status transition and lifecycle event until the job reaches a terminal state.


    **Find a model** — `GET /models` lists every model with its `id` and human `name`; each operation in the *Run a model* section is titled with both, so a model you know by name ("GPT Image 2") maps straight to the id you submit to (`gpt-image-2`). One model''s typed input schema: `GET /models/{id}/openapi.json`.


    Estimate cost before you run with `POST /models/{model}/estimate`. For volume pricing and custom limits, talk to us.


    The full machine-readable spec is at `https://api.hedra.com/v3/openapi.json`.'
  version: 3.21.14
servers:
- url: https://api.hedra.com/v3
tags:


# --- truncated at 32 KB (1690 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/hedra/refs/heads/main/openapi/hedra-run-a-model-api-openapi.yml