gpt api — media generation API

Add AI image, video and music generation to your app

Create a key, pick a model, quote the credits and submit a task. Try prompts in the workspace first, then call the same models from your code.

Credit cost quoted before each task · plans or one-time packs

gpt api provides media generation APIs for developers and business teams. 30+ image, video and music models share one credit balance, with docs, quotes and task results you can query from your app.

Start with your business question

Choose, budget and plan your GPT API integration.

Understand model selection and costs, then use the current media API docs to quote, generate and query a task. General selection guidance and the site’s available API scope are explained separately.

GPT API or a chat app?

A chat app is a convenient place to ask questions and handle individual tasks. An API lets your website, app or business system call AI programmatically. Explore the workspace for hands-on use; confirm endpoints and access before embedding AI in your own product.

Which model fits your task?

Compare representative tasks: accuracy and speed for support, coverage for summaries, and structured outputs and tool compatibility for automation. Then compare cost per successful task. These are selection criteria; confirm the models available for your integration with us.

Direct provider or an API gateway?

Direct APIs follow each provider’s account, billing and interface requirements. A gateway can centralize access, but check model sourcing, protocol differences, additional fees and data handling. Choose a setup where you can verify results, inspect usage and migrate when needed.

How do you evaluate API reliability?

Run a small realistic test across different times and track success rates, time to first output, total duration, quality and billed usage. Confirm model versions and failure-handling rules. A model name or a single answer cannot establish model authenticity or long-term reliability.

Understand costs before scaling

How are media API credits calculated?

The current media API shares account credits with the workspace. Select a model and inputs, request a credit quote, then submit. The server recalculates the cost and returns charged credits and remaining balance after accepting the task.

Estimated credits = sum of (task count × current quoted credits per task)

Illustrative example — not a fixed model price

If a particular request is quoted at 40 credits and you plan to submit 100 such tasks, allow about 4,000 credits. Model, output count, resolution, duration and references can affect the quote.

The 40-credit amount is illustrative, not an actual tariff. Quotes do not create tasks or lock prices; submission recalculates the cost. The current published interface uses media-task credits, not general text API token pricing.

Understand media API credit billing

From a first call to integration

Integrate the current media API in three steps

  1. 1

    Choose a model and get a quote

    Sign in to create a user key, select a model slug from the current catalog, prepare valid inputs and request a credit quote. Quoting does not create a generation task.

  2. 2

    Submit once and save the task ID

    After reviewing the quote, submit a media request and check both HTTP status and business code. Save data.id after acceptance; queued does not mean generation is complete.

  3. 3

    Query the original task and review credits

    Query task state with the same account’s credentials and read the media result on success. After a timeout, inspect the original task and credit records before resubmitting.

The current documentation covers the site’s image, video and music task protocol. Standard GPT text endpoints and native third-party tool compatibility are outside this integration flow.

Read the quickstart and examples

Want to explore first? The workspace offers image, video and audio tools with credit requirements shown before submission.

Read the troubleshooting guide

General technical guidance references official OpenAI documentation: Quickstart · Pricing · Error codes

Examples

Example outputs from the media models

Template examples of what one prompt or image input can produce. Test your own prompts in the workspace before you integrate.

  • AI dance video — AI video effect
    AI dance video — AI video effect
  • AI mermaid transformation — AI video effect
    AI mermaid transformation — AI video effect
  • AI fighting video — AI video effect
    AI fighting video — AI video effect
  • Photo to anime — AI video effect
    Photo to anime — AI video effect
  • AI Earth zoom — AI video effect
    AI Earth zoom — AI video effect
  • AI baby dance — AI video effect
    AI baby dance — AI video effect
  • AI live portrait — AI video effect
    AI live portrait — AI video effect
  • AI room design — AI video effect
    AI room design — AI video effect
  • AI action figure — AI video effect
    AI action figure — AI video effect
  • AI aging and de-aging — AI video effect
    AI aging and de-aging — AI video effect
  • AI fursona — AI video effect
    AI fursona — AI video effect
  • AI painting — AI video effect
    AI painting — AI video effect
  • AI video ads — AI video effect
    AI video ads — AI video effect
  • Anime to real life — AI video effect
    Anime to real life — AI video effect

Agent & integrations

Explore GPT API use cases through conversation

Plan requests with the gpt api Agent, or connect gpt api to Claude, ChatGPT and Cursor with MCP and the CLI.

gpt api inside Claude, ChatGPT and Cursor

Connect once and your AI agent can make images, video and music on your gpt api account, with the same credits and prices as the app.

  • Works in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex and Gemini CLI
  • 10 tools and every gpt api model, priced before it runs
  • A one-file CLI for scripts, batches and CI
  • Sign in with gpt api, no API key needed
  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Claude Code
  • Codex
  • Gemini CLI

Claude is connected to gpt api

Freeze this jump in bullet time, orbit the camera

generate_videoSeedance 2.5Done

The idea

One API key instead of a dozen vendor accounts

Image, video and music generation usually means separate vendors, keys and invoices. gpt api puts the models behind one key and one credit balance.

The old way

15 apps, 15 logins, 15 bills

  • MidjourneyImages
  • ChatGPTChat
  • RunwayVideo
  • Kling AIVideo
  • HiggsfieldVideo effects
  • HeyGenAvatars
  • ElevenLabsVoice
  • SunoMusic
  • Meshy3D models
  • Adobe FireflyPhoto editing
  • remove.bgBackgrounds
  • TopazUpscaling
  • CapCutSubtitles
  • CanvaDesign
  • PikaVideo

Separate subscriptions, separate bills, and files scattered across every app.

The gpt api way

1 app, 1 login, 1 balance

One studio.

Monthly plans or one-time credit packs

  • Image
  • Video
  • Image editing
  • Video effects
  • Music & audio
  • Agent
  • Canvas
  • Prompts

Image, video and audio models from leading AI labs, quoted in credits before every task.

One platform

Workspace tools behind the API

16 studios and tools for image, video, music and editing. Test prompts and inputs here before you plan your integration.

Generate images with the best AI models
Made with gpt api

AI image generator

Generate images with the best AI models

Photoreal portraits, products, posters and art from one prompt. GPT Image, Nano Banana, Seedream, FLUX and more image models in one AI image generator.

  • Text to image & image to image
  • Readable text for posters and ads
  • Switch models on the same prompt

16 tools, one balance

Explore the GPT API workspace, with examples

Use the creative tools to explore prompts, inputs and outputs before planning your own AI integration.

Turn text and photos into video
Made with gpt api

Video Studio

AI video generator

How it works

From API key to result in four steps

Create a key, choose a model, quote and submit a task, then query the result.

  1. 1

    Step 1: Create an API key

    Sign in, open Settings → API keys and create a key for your app.

  2. 2

    Step 2: Choose a model

    Pick an image, video or music model and check its supported inputs and parameters in the docs.

  3. 3

    Step 3: Quote and submit

    Get the credit quote for your parameters, then submit the generation task.

  4. 4

    Step 4: Query the result

    Poll the task status and download the output when it is ready. See the error guide if a task fails.

Workspace pricing: plans and credits.

These plans provide account credits shared by the workspace and current media generation API. Task costs depend on the model, inputs and submission-time pricing. General text API token rates are not listed in these plans.

Billing cycle
Compare plans and prices

Lite

Perfect for beginners exploring AI

$9.99/ month$12.99

$119.88 billed yearly

3,000 Credits / month

Videos
~61
Images
~750
Tracks
~136
  • Access to video generation models
  • Access to image generation models
  • Music and audio creation
  • AI Agent chat
  • Use subject to applicable terms
  • AI Workflow Infinite Canvas included

Secure checkout · cancel renewal anytime

Pro

Popular

Ideal for high-frequency creation

$24.99/ month$34.99

$299.88 billed yearly

10,000 Credits / month

Videos
~204
Images
~2,500
Tracks
~454
  • Access to video generation models
  • Access to image generation models
  • Music and audio creation
  • AI Agent chat
  • Use subject to applicable terms
  • AI Workflow Infinite Canvas included

Secure checkout · cancel renewal anytime

Ultra

Designed for extreme production

$79.99/ month$129.99

$959.88 billed yearly

30,000 Credits / month

Videos
~612
Images
~7,500
Tracks
~1,363
  • Access to video generation models
  • Access to image generation models
  • Music and audio creation
  • AI Agent chat
  • Use subject to applicable terms
  • AI Workflow Infinite Canvas included

Secure checkout · cancel renewal anytime

Questions

GPT API FAQ

Short answers about API keys, credits, quotas, latency and data privacy.

Still stuck? See pricing details

Pricing

Plan GPT API for your business

Workspace plans give account credits shared by the workspace and the media generation API. Task costs depend on the model, inputs and submission-time pricing.

gpt api in numbers

AI models
30+
studios & tools
16
image & video output
4K
credit balance for everything
1