API Documentation

Learn how to integrate CloudGPT into your applications. Our API is fully compatible with the OpenAI SDK.

Quick Start

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

Base URL

https://meridianlabsapp.website/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 179+ supported models.

/chat/completions

Example Request (cURL)

curl https://meridianlabsapp.website/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://meridianlabsapp.website/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://meridianlabsapp.website/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://meridianlabsapp.website/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?

Our team is here to help you with any integration questions.