WorldAPI

API documentation

WorldAPI is OpenAI-compatible: use any OpenAI SDK with a different base URL and your WorldAPI key.

Base URLhttps://worldapi.cc/v1

Quickstart

Create an API key in the dashboard, export it as WORLDAPI_KEY, then send a chat completion. Create a key

Authentication

Send your key as a Bearer token in the Authorization header (x-api-key is also accepted). Keys start with wapi-sk- and are shown only once at creation; revoke and recreate them from the dashboard.

Models

Use the public id from the rate card as the model parameter. GET /v1/models returns the same list with prices. See the full rate card

gpt-4.1gpt-4.1-minigpt-4.1-nanogpt-4ogpt-4o-minigpt-5gpt-5-minigpt-5-nanogpt-5.1gpt-5.1-codexgpt-5.2gpt-5.2-codexgpt-5.3-codexgpt-5.4gpt-5.4-minigpt-5.4-nanogpt-5.5gpt-5.6-lunagpt-5.6-solgpt-5.6-terragpt-oss-120bgpt-oss-20bclaude-3-haikuclaude-fable-5claude-fable-5.1claude-haiku-4.5claude-haiku-5.5claude-opus-4.1claude-opus-4.5claude-opus-4.6claude-opus-4.7claude-opus-4.8claude-opus-5claude-sonnet-4claude-sonnet-4.5claude-sonnet-4.6claude-sonnet-5claude-sonnet-5.5gemini-2.5-flashgemini-2.5-flash-litegemini-3.1-flash-litegemini-3.1-progemini-3.5-flashgemini-3.5-flash-litegemini-3.6-flashgemini-3.7-flashgemini-3.8-flashgemini-4-argongemma-4-26bdeepseek-v4-flashdeepseek-v4-proqwen3-235bqwen3-coderqwen3-next-80bqwen3-next-80b-thinkingglm-4.7glm-5kimi-k2-thinkingkimi-k2.6llama-3.1-70bllama-4-maverickminimax-m2grok-4.6nova-2-litenova-litenova-micronova-propalmyra-x5phi-4

Billing & usage

Usage is bought as packs before use. Each request is priced per token and consumed from your remaining usage; a request with no remaining usage is refused with 402.

Each model has its own discounted price next to the vendor's official price; see the rate card.

Responses carry the standard OpenAI usage object (streaming: in the final chunk). Per-request cost is shown in the dashboard.

Errors

Errors use the OpenAI envelope: { error: { message, type, code } }. Failed requests are not charged.

HTTPcodeMeaning
401invalid_api_keyMissing, malformed or revoked API key.
402insufficient_balanceNo remaining usage. Buy a usage pack in the dashboard.
404model_not_foundUnknown model id.
429rate_limit_errorThe upstream provider rate-limited the request. Retry with backoff.
502 / 504upstream_errorThe upstream provider failed or timed out. Not charged; retry.

Limits

  • Request bodies up to 6 MB; streaming responses up to 5 minutes.
  • Up to 20 active API keys per account.
  • Per-account rate limits follow the cloud quotas we hold; contact support for reserved throughput.