Quick Start
Quick Start
1. Get an API Key
Subscribe at cryptgpt.co/pricing to receive your API key.
2. Make Your First Request
curl -X POST https://cryptgpt.co/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gemma-4-26b", "messages": [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "What is the capital of France?"} ] }'3. Use with OpenAI SDK
Python
import openai
client = openai.OpenAI( api_key="your-api-key", base_url="https://cryptgpt.co/v1")
response = client.chat.completions.create( model="gemma-4-26b", messages=[{"role": "user", "content": "Hello!"}])
print(response.choices[0].message.content)Node.js
import OpenAI from 'openai';
const client = new OpenAI({ apiKey: 'your-api-key', baseURL: 'https://cryptgpt.co/v1',});
const response = await client.chat.completions.create({ model: 'gemma-4-26b', messages: [{ role: 'user', content: 'Hello!' }],});
console.log(response.choices[0].message.content);4. Enable Streaming
stream = client.chat.completions.create( model="gemma-4-26b", messages=[{"role": "user", "content": "Tell me a story"}], stream=True)
for chunk in stream: if chunk.choices[0].delta.content: print(chunk.choices[0].delta.content, end="")Next Steps
- API Reference - Full endpoint documentation
- Authentication - API key management
- Rate Limits - Tier details and headers
- Streaming - SSE implementation guide