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

gemini-3.1-progemini-3.8-flashgemini-3.5-flashgemini-3.5-flash-litegemini-3.1-flash-litellama-4-maverickqwen3-235bglm-4.7kimi-k2-thinkingclaude-opus-5claude-sonnet-5claude-opus-4.8claude-sonnet-4.6claude-haiku-4.5gemma-4-26bgpt-oss-120bgpt-oss-20bglm-5kimi-k2.5nova-premiernova-pronova-2-litenova-lite

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.