Skip to contentOceanToken

OceanToken FAQ

Answers about accounts, billing, models and video generation. Every question is its own heading, so it can be linked and quoted on its own.

Account & credit

How do I start using OceanToken?

Create an account, add credits in the console, create an API key, then send your first request to https://api.oceantoken.ai/v1. The quickstart walks through each step.

Is there a free way to try the API?

Yes. Models whose ID ends in :free cost nothing to call, with limited throughput, and work even with an empty balance. New personal accounts that sign in with Google or GitHub, or sign up with a common email provider, also get a one-time starter credit, once per person and valid for 14 days, that works with any model. See the model list.

How long do my credits last?

Purchased credits are valid for 12 months from purchase, and there is no monthly minimum. Each request deducts its exact cost from your prepaid balance. The docs explain top-ups.

Can I limit how much an API key can spend?

Yes. Each API key can have its own credit limit, optionally resetting daily, weekly or monthly, and an expiry date. A key that reaches its limit stops with a 402 error while the rest of your balance stays available.

What is OceanToken?

OceanToken is one API and one prepaid balance for every leading AI model: text, image, video, speech, transcription, embedding and rerank models. Create one account, add credits and an API key, then call any model with the same base URL and key; each model's price, context window and capabilities are on the model list before you call it.

Pricing & tiers

How is usage priced?

You pay per use from a prepaid balance, with no subscription and no platform fee: language models per token, images per image, most video models per second and speech by length. A processing fee is added at checkout when you top up. Every price is on the pricing page.

Am I charged for failed requests?

No. An attempt that fails before the model produces output is not billed, and a failed video job is not charged. A stream that breaks after output has started is billed for its prompt and the output streamed up to that point; see reliability.

How do the tiers work?

Your tier follows the total you have paid for credits and sets a discount off the official price on selected models. Given credit does not count, and a tier you reach never goes down. How tiers work lists every tier.

Do tier discounts apply to cached tokens?

No. Tier discounts apply to input and output tokens only; cached input and cache writes are always billed at the official price. How tiers work lists the models each tier covers.

Why is my Claude prompt not cached?

Claude caches a prompt only when the request asks for it: mark the end of the repeated part with "cache_control": {"type": "ephemeral"} on a content block, on /v1/chat/completions or /v1/messages, and later requests read that part from the cache at the cached input price. GPT, DeepSeek, Qwen and GLM models cache on their own, and Claude only caches a prefix above a minimum length (512 to 4,096 tokens, by model). See prompt caching.

Models & access

Can I use my existing OpenAI SDK?

Yes. The API is OpenAI-compatible: set the base URL to https://api.oceantoken.ai/v1, use your OceanToken key and set model to any id from the model list. Chat, images, video, embeddings, speech and transcription follow the same shapes.

Does the Anthropic SDK work too?

Yes. Every chat model also answers on the Anthropic Messages API at /v1/messages, so the Anthropic SDK and tools built on it, such as Claude Code, work with the base URL https://api.oceantoken.ai and your OceanToken key. See integrations.

What happens if a model provider goes down?

Usually nothing you can see. Many models have more than one official or authorized channel; when one fails, the request moves to another channel of the same model at the same price. It never answers with a different model unless you name backups with fallbacks.

What are the rate limits?

Rate limits are per API key, in requests and tokens per minute. Going over returns 429 with a Retry-After header. A request that is not streamed may run for up to 240 seconds, so stream long answers. Details are on the limits page.

Which models can I call?

Every leading model: language models such as GPT, Claude, Gemini, DeepSeek, Qwen, GLM and Kimi, plus image, video, text-to-speech, speech-to-text, embedding and rerank models. The model list shows each one with its exact model ID, price and context window, and whether it supports reasoning, tool calling or image input.

How do I use OceanToken with Claude Code, Codex, Cursor or Gemini CLI?

Run one command in a terminal and sign in: npx -y @oceantoken/cli@latest connect codex (or claude-code, cursor, gemini). It adds the OceanToken MCP server and skills to that agent, and the same API key works in any OpenAI-compatible tool once you set the base URL. Step-by-step setups are on Integrations.

Video

How does video generation work?

Video models answer on /v1/videos as jobs: you create a job with a prompt, poll it until it is done, then download the file. One key and one balance cover every video model on the video page.

How is video billed?

Most video models are billed per second of video, and Seedance by tokens; the price depends on resolution and sound. A job holds its estimated cost when created and is charged the actual cost when it finishes. Prices are on each model's page.

Can I turn an image into a video?

Yes. Send the first frame, and on models that take one the last frame, with your prompt; the clip starts from your image. On Seedance, a portrait first frame gives a portrait clip unless you set aspect_ratio. The video guide has examples.

How long can I download a generated video?

Image and video download links stay valid for 24 hours, so save the file once the job is done; the console's Media page keeps a copy for 30 days. Send an Idempotency-Key with each create call so a retry never starts, and charges for, a second job.

Can I generate images and speech too, not just video?

Yes. Image models answer on /v1/images/generations and /v1/images/edits, text-to-speech on /v1/audio/speech, transcription on /v1/audio/transcriptions, embeddings on /v1/embeddings and rerankers on /v1/rerank. All of them use the same key and balance, and each request appears in the console's Logs with its cost.