Skip to main content

Step 1: Get Your API Key

1

Create an account

Sign up at lemondata.cc using your email, Gmail, or GitHub account.
2

Add credits

Open the dashboard and add credits to your account. LemonData uses pay-as-you-go pricing with no minimum commitment.
3

Create an API key

Go to Dashboard → API Keys and create a new key. Copy it securely because it is only shown once.
Keep your API key secure. Never expose it in client-side code or public repositories.

Step 2: Install a Client

pip install openai

Step 3: Make Your First Request

For new projects, start with the Responses API.
curl https://api.lemondata.cc/v1/responses \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.4",
    "input": "What is the capital of France?"
  }'
If your framework or tool still expects Chat Completions, LemonData also supports POST /v1/chat/completions. For new integrations, prefer POST /v1/responses.

Try Different Models

LemonData supports 300+ models. Change only the model field:
response = client.responses.create(model="gpt-5.4", input="Hello")
response = client.responses.create(model="gpt-5-mini", input="Hello")
response = client.responses.create(model="claude-sonnet-4-6", input="Hello")
response = client.responses.create(model="gemini-2.5-flash", input="Hello")
response = client.responses.create(model="deepseek-r1", input="Hello")

Enable Streaming

stream = client.responses.create(
    model="gpt-5.4",
    input="Tell me a short story.",
    stream=True
)

for event in stream:
    if event.type == "response.output_text.delta":
        print(event.delta, end="")

What’s Next?

Authentication

Learn about API key management and security.

OpenAI SDK

Use official OpenAI SDKs with LemonData.

API Reference

Explore the full endpoint reference.

Models

Browse current model availability and pricing.