Developer Docs

API Documentation

Integrate CloudGPT into your applications. The API is OpenAI SDK compatible and supports 194+ models.

Quick Start

To start using the API, you first need to generate an API key from your Dashboard.

Base URL

https://cloudgpt.me/v1

Authentication

Authenticate your requests by including your API key in the Authorization header.

Authorization: Bearer cgpt_sk_your_api_key_here

Chat Completions

POST

Our chat completions endpoint is compatible with the OpenAI API format. You can use it with any of our 194+ supported models.

/chat/completions

Example Request (cURL)

curl https://cloudgpt.me/v1/chat/completions \\\\ -H "Authorization: Bearer YOUR_API_KEY" \\\\ -H "Content-Type: application/json" \\\\ -d '{ "model": "gpt-4o-mini", "messages": [ {"role": "user", "content": "Hello!"} ] }'

Example Request (Node.js)

import OpenAI from "openai"; const openai = new OpenAI({ apiKey: "YOUR_API_KEY", baseURL: "https://cloudgpt.me/v1", }); const response = await openai.chat.completions.create({ model: "gpt-4o-mini", messages: [{ role: "user", content: "Hello!" }], }); console.log(response.choices[0].message.content);

Image Generations

POST

Standard OpenAI-compatible image generation endpoint.

/images/generations

Example Request (cURL)

curl https://cloudgpt.me/v1/images/generations \\\\ -H "Authorization: Bearer YOUR_API_KEY" \\\\ -H "Content-Type: application/json" \\\\ -d '{ "model": "stable_diffusion", "prompt": "A futuristic city at night" }'

Video Generations

POST

Standard OpenAI-compatible video generation endpoint. Requires a Video plan.

/video/generations

Example Request (cURL)

curl https://cloudgpt.me/v1/video/generations \\\\ -H "Authorization: Bearer YOUR_API_KEY" \\\\ -H "Content-Type: application/json" \\\\ -d '{ "model": "luma-dream-machine", "prompt": "A beautiful sunset over the ocean" }'

Rate Limits

Free Plan

500

requests per day

Pro Plan

1,000

requests per day

Note: Rate limits are applied globally across all models and providers. Once you reach your daily limit, you will need to wait for the reset period or upgrade your plan.

Need more help?

Get support for integrations, billing, or API usage questions.