Tokenify
Get API keyConsole
Menu

The Sora API shut down. Your code runs on MiniMax H3.

Tokenify does not serve Sora: it takes the same OpenAI SDK video calls on the same paths, so code written for Sora runs on MiniMax H3 by changing the base URL, the key and the model id. From $0.024/s at 720p, prices as of 2026-11-29.

Get API key
Use in your agent

Connect the Tokenify MCP server

Paste this into the agent’s chat:

Claude Code

Add the Tokenify MCP server for all my projects by running: claude mcp add --transport http --scope user tokenify https://api.tokenify.dev/mcp — then tell me to start a new conversation, where you will ask me to sign in.

Codex

Add the Tokenify MCP server by running: codex mcp add tokenify --url https://api.tokenify.dev/mcp — then tell me to restart Codex and sign in with Authenticate next to tokenify in Settings > MCP servers (in a terminal: codex mcp login tokenify).

In Claude (claude.ai or the desktop app): open Connectors, choose Add custom connector and enter https://api.tokenify.dev/mcp. Claude opens Tokenify to sign in. On a Team or Enterprise plan an owner adds it for the organisation.

A browser opens to sign in and pick the project to spend from. The agent quotes each generation and, by default, asks you before one that costs $1 or more.

In a terminal instead
Claude Code
claude mcp add --transport http tokenify https://api.tokenify.dev/mcp
Codex
codex mcp add tokenify --url https://api.tokenify.dev/mcp
codex mcp login tokenify
No MCP in your client? Paste a prompt instead

With a key in TOKENIFY_API_KEY

Read https://www.tokenify.dev/agents.md — it describes the Tokenify API, at https://api.tokenify.dev. Use it to generate video with minimax/minimax-h3-economy, with the key in my TOKENIFY_API_KEY environment variable. Tell me the price before each call, and ask me first if this task's total could reach $1 or more, or if you cannot work out what a call will cost. Save every result into this project: decode an image that comes back inline, and download anything returned as a link, because links expire after 7 days.

What happened

OpenAI shut its Videos API down on 24 September 2026 — Sora 2 and Sora 2 Pro with it — and its own model pages say there is no one-to-one replacement API.

  • client.videos.create(model="sora-2", …) against OpenAI fails: the endpoint is gone.
  • The same call sent here with sora-2 is refused by name, with a pointer to the model ids that work, rather than served by something else.
  • Change the base URL, the key and the model id, and the create, the polling and the download of the video run unchanged.

The change

Before

from openai import OpenAI

client = OpenAI()

video = client.videos.create(
model="sora-2",
prompt="a paper boat on still water",
size="1280x720",
seconds="8",
)

After

from openai import OpenAI

client = OpenAI(
base_url="https://api.tokenify.dev/v1",
api_key="YOUR_TOKENIFY_KEY",
max_retries=0,
)

video = client.videos.create(
model="minimax/minimax-h3-economy",
prompt="a paper boat on still water",
size="1280x720",
seconds="8",
)

The base URL, the key and the model id — and max_retries=0, because the SDK resends a submit whose connection dropped, and a submit that was accepted would then be a second, billed job.

What maps, and what is refused

FieldSoraHere
modelsora-2, sora-2-proA model this endpoint serves; Sora ids are refused
sizesora-2: 1280x720, 720x1280. sora-2-pro also 1024x1792, 1792x1024, 1080x1920, 1920x1080A size in one of the model's bands — 480p, 720p, 768p for MiniMax H3 Economy. 1280x720 and 720x1280 are both 720p; a size outside the bands is refused rather than resized
secondsA fixed length, as a string4 to 15 whole seconds for MiniMax H3 Economy; a longer Sora clip has to be shortened
input_referenceA first frameRefused: send a first frame in another dialect
charactersCharacter idsRefused by name
download_contentvideo, thumbnail, spritesheetThe video (the default, or variant="video"); thumbnail and spritesheet are refused

A value this endpoint cannot honour is refused by name rather than quietly adjusted, so a request is never answered as though your setting had been used when it was not. The full guide has every field.

What to move to, and what it costs

ModelWherePer second
Sora 2OpenAI, 720p, before the shutdown$0.100
Sora 2 ProOpenAI, 720p, before the shutdown$0.300
MiniMax H3 EconomyHere, 720p$0.024

Their rates as published, checked 2026-11-24. Ours is the cheapest model here that makes 720p from a prompt; every video model is on one page.

Prices updated , from the catalogue the gateway bills from.

The whole call

from openai import OpenAI

# max_retries=0: the SDK resends a POST whose connection dropped, and a
# submit that was already accepted would then be a second, billed job.
client = OpenAI(base_url="https://api.tokenify.dev/v1", api_key="YOUR_TOKENIFY_KEY", max_retries=0)

video = client.videos.create(
model="minimax/minimax-h3-economy",
prompt="A paper boat on still water, dawn light",
size="854x480", # 480p
seconds="4",
)
while video.status in ("queued", "in_progress"):
video = client.videos.retrieve(video.id)

client.videos.download_content(video.id, variant="video").write_to_file("out.mp4")

Questions people ask before signing up

Do you serve Sora?

No. Nobody can: OpenAI shut the Sora API down on 24 September 2026. What we serve is the same request shape — OpenAI's videos endpoints, on the same paths — in front of other video models, so code written for Sora keeps working with a different base URL, key and model id.

What happens if I send model="sora-2" here?

It is refused with model_not_available, naming where the ids that work are listed. Answering with a different model under the name you asked for would put a false record in your logs and on your bill.

Does my polling and download code change?

Not for the video. videos.retrieve is the same call, and videos.download_content returns the MP4 — the default variant, or variant="video". The thumbnail and spritesheet variants are refused, because nothing here makes them. A failed job is refunded in full.

Why MiniMax H3 Economy?

It is the cheapest model here that makes 720p — the resolution Sora was priced at — from a prompt alone, so the comparison above is like for like. Every video model takes the same request shape, but the size has to be one of that model's own bands; the video page lists them.

Can I use the free credit for video?

No. Video needs a project that has paid in at least $5 of top-ups and kept it, and a balance that covers the job when it is submitted. Until then a request is refused with a link to the billing page.

Last updated 2026-11-24. Prices come from the live catalogue at the time this page was built.