AITube API · REST, MCP and OpenAPI

Build with AITube.Every AI video model, one API.

Generate videos with Veo, Kling, Seedance and every other AITube model, make faceless Shorts, music, voiceovers and effects, and publish to your channel, from your own code. Billed in AITube credits at the same prices as the studio.

See the endpoints
Endpoints
31
Models
All of them
Billing
Credits

POST /v1/generations

curl -X POST https://api.aitube.app/v1/generations \
  -H "Authorization: Bearer $AITUBE_KEY" \
  -d '{"prompt":"A neon fox in Tokyo rain","duration_sec":5}'
{
  "generation_id": "8c1e…",
  "status": "queued",
  "price_credits": 130,
  "refund_when": "Automatically, if it fails"
}

Three ways in

Your code, your AI app, or your GPT.

Creator and Pro

REST API

JSON over HTTPS with an API key. Generate, follow and publish from any language, a backend job or a no-code tool.

Quickstart
Every plan

AI apps (MCP)

Add AITube to Claude or ChatGPT by signing in, or to Cursor and other MCP apps with a key. The same tools, picked by your assistant as you talk.

Connect an app
Creator and Pro

ChatGPT GPT Actions

Building a custom GPT? Import the OpenAPI spec as an Action and set the authentication to API key, Bearer.

openapi.json

Quickstart

A clip on your channel in three calls.

Create a key in Settings, Developer API, and keep it in an environment variable. Base URL: https://api.aitube.app/v1

  1. Check your key

    curl https://api.aitube.app/v1/me \
      -H "Authorization: Bearer $AITUBE_KEY"
  2. Generate a clip

    curl -X POST https://api.aitube.app/v1/generations \
      -H "Authorization: Bearer $AITUBE_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: fox-001" \
      -d '{"prompt":"A neon fox running through Tokyo rain, cinematic","duration_sec":5,"aspect_ratio":"9:16"}'
  3. Follow it, then post it

    curl https://api.aitube.app/v1/generations/$GENERATION_ID \
      -H "Authorization: Bearer $AITUBE_KEY"
    
    curl -X POST https://api.aitube.app/v1/videos/$VIDEO_ID/publish \
      -H "Authorization: Bearer $AITUBE_KEY" \
      -H "Content-Type: application/json" \
      -d '{"title":"Neon fox","category":"Entertainment"}'

Reference

31 endpoints. The same tools AI apps get.

Paid endpoints spend credits or post for you. Every field, type and limit is in the OpenAPI spec, and GET /v1 lists them all.

Account

  • GET/v1/me

    Plan, credit balance, perks and your API limits.

  • GET/v1/me/stats

    Your channel's views, watch time, subscribers and engagement.

AI video

  • GET/v1/models

    Every video model with durations, ratios and the credit price of each.

  • POST/v1/generations/quote

    The exact price for a prompt and settings.

  • POST/v1/generations

    Generate a clip: text-to-video or image-to-video, any model.

    Paid
  • GET/v1/generations/{generation_id}

    Status, then the video URL and the draft's video_id.

  • GET/v1/generations

    Your recent generations.

  • POST/v1/generations/{generation_id}/cancel

    Cancel and refund.

Faceless videos

  • GET/v1/faceless/options

    Formats, looks, voices, captions, music, presenters.

  • POST/v1/faceless/scripts

    Write a script from an idea, free.

  • POST/v1/faceless/quote

    The exact price, line by line.

  • POST/v1/faceless/videos

    Make the video; charged when it's ready.

    Paid
  • GET/v1/faceless/videos/{video_id}

    Progress, then the download link.

  • GET/v1/faceless/videos

    Your faceless videos.

Audio

  • GET/v1/audio/options

    Music models, voices and sound-effect categories, with prices.

  • POST/v1/audio

    Music, a voiceover from a script, or a sound effect.

    Paid
  • GET/v1/audio/{audio_id}

    Status, then the file URL.

Effects and prompts

  • GET/v1/effects

    The Instant Effects, with prices.

  • POST/v1/effects

    Turn a photo (an https link) into an effect video.

    Paid
  • GET/v1/effects/{effect_job_id}

    Status, then the video URL.

  • POST/v1/prompts/enhance

    Turn a short idea into a detailed prompt, free.

Publishing

  • POST/v1/videos/{video_id}/publish

    Publish a finished generation to your channel.

    Paid
  • GET/v1/videos/{video_id}/publish

    Processing, live with its link and stats, or held back.

  • POST/v1/uploads

    A presigned upload URL for your own video file.

    Paid
  • POST/v1/uploads/{video_id}/complete

    Start processing; it publishes by itself.

    Paid
  • POST/v1/community/posts

    A text post in the AITube community.

    Paid

Discover

  • GET/v1/search

    Search videos and creators.

  • GET/v1/videos/trending

    Trending videos, by category.

  • GET/v1/videos/{video_id}

    A public video's details.

  • GET/v1/channels/{username}

    A channel and its latest videos.

  • GET/v1/battles

    Open AI video battles.

Pricing

Part of your plan. Usage in credits.

No separate API bill. Every call costs the same credits as the same action in the studio, with failed generations refunded.

Free

  • AI apps (MCP) in Claude, ChatGPT and more
  • Free tools: models, prices, script drafts, search
  • Making videos and posting from apps
  • REST API

Pay As You Go

  • Everything in Free
  • Make videos, audio and effects from AI apps
  • Post to your channel from AI apps
  • REST API

Creator

  • Everything in AI apps
  • REST API and OpenAPI
  • 60 requests a minute per key
  • 200 paid actions a day per key
  • Monthly credits included

Pro

  • Everything in Creator
  • 300 requests a minute per key
  • 1000 paid actions a day per key
  • More monthly credits, HD images, priority rendering

A credit is $0.02 on Pay As You Go, and plans include credits every month. AI apps over MCP: 60 requests a minute and 60 paid actions a day per connection. Need more for a real product? support@aitube.app. See plans and credit packs

Conventions

Four rules, then plain JSON.

Authentication

Send your key as Authorization: Bearer ait_… on every request. Keys live on servers only; anyone holding one can spend your credits.

Retries without double charges

Add an Idempotency-Key header to paid calls. Repeating a call with the same key returns the job already started.

Long jobs

Generations answer at once with an id. Poll its status every 15-30 seconds; the response has the file URL when it's ready.

Prices you agreed to

Quote first, then pass expected_credits: if the price moved, nothing starts and you get the new price with a 409.

StatusCodeMeaning
400INVALID_ARGUMENTSA field is missing or wrong; the message names it.
401API_KEY_INVALIDNo key, a wrong key, or a revoked one.
402INSUFFICIENT_CREDITSNot enough credits; required, available and shortfall are included.
403PLAN_REQUIREDThe account isn't on Creator or Pro, or an option needs a higher plan.
404NOT_FOUNDNo such generation, video or channel on this account.
409CONFLICTThe price changed since your quote (with expected_credits), or the draft has no file yet.
429RATE_LIMITED / DAILY_LIMITToo many requests a minute, or the day's paid actions; Retry-After says when.
502SERVER_ERRORSomething failed on our side. Nothing was charged; retrying is safe.

Errors are { "error": { "code", "message" } }, with the fix in the message. MCP server for AI apps: https://api.aitube.app/api/v1/mcp

Questions

Before you build, in short answers.

Does AITube have an API?

Yes. The AITube API is a REST API at https://api.aitube.app/v1 with 31 endpoints: generate AI videos with every model AITube offers, make faceless videos, music, voiceovers and effects, publish to your channel, and search AITube. It has an OpenAPI 3.1 description at https://api.aitube.app/v1/openapi.json.

Which plans include the API?

The REST API comes with the Creator and Pro plans. AI apps over MCP (Claude, ChatGPT, Cursor and others) work on every plan: free accounts get the free tools, and making or posting needs Creator, Pro or Pay As You Go credits.

How is API usage billed?

In AITube credits, at the same price as the same action in the studio. The plan's monthly credits are used first, then credits you bought. AI video generations are refunded automatically if they fail, and faceless videos are charged only once they're ready.

Which AI video models can I use?

Every model on the AITube Generate page, including Google Veo, Kling, Seedance, Wan, Hailuo and more. GET /v1/models lists them with their durations, aspect ratios and the credit price of each.

Can I post the videos I generate?

Yes. A finished generation is saved as a draft; POST /v1/videos/{video_id}/publish puts it on your channel with the same checks as an upload in the app. You can also upload your own files with /v1/uploads.

Are there rate limits?

Per key: 60 requests a minute and 200 paid actions a day on Creator, 300 and 1000 on Pro. Going over returns 429 with a Retry-After header and costs nothing.

Can I use it from ChatGPT or Claude?

Yes. Connect AITube as an MCP connector in Claude or ChatGPT by signing in to AITube (see aitube.app/mcp), or import the OpenAPI spec as an Action in a custom GPT.

Every model. One key.

Generate, follow and publish from your own code.