Generate ready-to-use API requests for OpenAI, Anthropic, Google Gemini, DeepSeek, and Groq. Configure your parameters and copy the request in cURL, Python, or JavaScript.
curl -X POST 'https://api.openai.com/v1/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"model": "gpt-4.1",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain Kubernetes pods in 3 sentences."
}
],
"temperature": 0.7,
"max_tokens": 1024
}'