Skip to main content

Get Your API Key

First, sign up for an account and get your API key from the GPTProto Dashboard.
Keep your API key secure and never share it publicly. Treat it like a password.

Make Your First Request

Here’s how to make your first API call using different programming languages:
curl https://gptproto.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: YOUR_API_KEY" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {
        "role": "user",
        "content": "Hello! How are you?"
      }
    ]
  }'

Response Format

You’ll receive a JSON response like this:
{
  "id": "chatcmpl-123",
  "object": "chat.completion",
  "created": 1677652288,
  "model": "gpt-4o",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "Hello! I'm doing well, thank you for asking. How can I assist you today?"
    },
    "finish_reason": "stop"
  }],
  "usage": {
    "prompt_tokens": 10,
    "completion_tokens": 20,
    "total_tokens": 30
  }
}

Next Steps

Common Use Cases

Chat Completion

Build conversational AI applications with context-aware responses.

Image Generation

Create unique images from text descriptions for marketing, design, or creative projects.

Video Synthesis

Generate video content for social media, advertising, or educational purposes.

Audio Processing

Transcribe audio files or convert text to natural-sounding speech.

Rate Limits & Pricing

Rate limits and pricing vary by model and subscription tier. Check your dashboard for details specific to your account.

Need Help?