CloudAPI chevron_right Documentation

Documentation

Everything you need to integrate CloudAPI into your application

Welcome to CloudAPI

CloudAPI is a unified API gateway that gives you access to 100+ AI models from OpenAI, Anthropic, Google, Meta, and others through a single endpoint. Built specifically for developers in Central Asia with local payment methods and UZS billing.

Why CloudAPI?

bolt

OpenAI-compatible

Drop-in replacement for OpenAI SDK. Just change the base URL.

payments

Local payments

Pay in UZS via Payme, Click, or bank transfer.

memory

100+ models

Access GPT, Claude, Gemini, Llama and many more.

trending_up

Transparent pricing

Pay only for what you use. No hidden fees.

Next steps

Quickstart

Get up and running in 3 minutes

1. Get your API key

Sign in to your dashboard and create a new API key.

2. Install the SDK

Use the official OpenAI SDK with our base URL.

bash
# Python
pip install openai

# Node.js
npm install openai

3. Make your first request

Send a chat completion request to any model.

python
from openai import OpenAI

client = OpenAI(
    api_key="cap-...",
    base_url="https://api.cloudapi.uz/v1"
)

response = client.chat.completions.create(
    model="anthropic/claude-3.5-sonnet",
    messages=[{"role": "user", "content": "Salom!"}]
)

print(response.choices[0].message.content)
check_circle
Try in playground

Try in playground β†’

Authentication

All API requests require authentication using your API key in the Authorization header.

Header format

http
Authorization: Bearer cap-abc123xyz...
warning
Keep your keys secure

Never expose API keys in client-side code. Store them as environment variables on your server.

Chat Completions

Generate text responses from any supported model.

Endpoint

endpoint
POST https://api.cloudapi.uz/v1/chat/completions

Parameters

Name Type Description
modelstringModel ID to use (e.g., openai/gpt-4o)
messagesarrayArray of message objects
temperaturenumberSampling temperature (0-2)
max_tokensintegerMaximum tokens to generate
streambooleanStream response chunks

Example request

curl
curl https://api.cloudapi.uz/v1/chat/completions \
  -H "Authorization: Bearer cap-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-3.5-sonnet",
    "messages": [{"role": "user", "content": "Salom!"}],
    "temperature": 0.7,
    "max_tokens": 1000
  }'

Pricing & Billing

CloudAPI uses pay-as-you-go pricing. You only pay for the tokens you use.

How billing works

  • Each model has input and output prices per million tokens
  • We add a 30% margin on top of the underlying provider price
  • Costs are deducted from your wallet balance in real-time
  • View detailed usage and costs in your dashboard
free_breakfast
Free models

Some models are available for free. Look for the "Free" badge.

Rate Limits

API requests are rate limited per API key to ensure fair usage.

speed
Default limit: 60 requests per minute

Rate limit headers

X-RateLimit-LimitTotal requests allowed
X-RateLimit-RemainingRemaining requests
X-RateLimit-ResetTime until reset (seconds)

Error Handling

CloudAPI returns standard HTTP status codes and OpenAI-compatible error responses.

Common error codes

Code Description
400Bad request β€” invalid parameters
401Unauthorized β€” invalid API key
402Payment required β€” insufficient balance
429Too many requests β€” rate limit exceeded
500Internal server error

Frequently Asked Questions

How do I get started? expand_more
Create a free account, generate an API key, top up your balance, and start making requests.
What payment methods do you accept? expand_more
Currently we accept manual bank transfers (Uzcard/Humo). Payme and Click integration coming soon.
Do I need an international card? expand_more
No! You can pay entirely in UZS using local Uzbek payment methods.
Can I use free models? expand_more
Yes, several models are completely free. Look for the "Free" badge in our models list.
How is pricing calculated? expand_more
We charge based on input and output tokens, with a 30% margin over the underlying model price.
Is my data secure? expand_more
Yes. API keys are encrypted, we use HTTPS everywhere, and we never store your conversation content.
Can I cancel anytime? expand_more
There is no subscription. Pay only for what you use.
Do you offer support? expand_more
Yes, contact us via Telegram or email. We respond in Uzbek, Russian, and English.

Contact us

Need help? Get in touch with our team.

We typically respond within 24 hours