The Sudo developer platform gives you access to 100+ AI models with a single API key. To obtain an API key, use the Sudo developer portal to create a simple dev app with an API key, then fill your account with credits using your Stripe payment method, which you can connect on the billing settings page.

Using the Sudo API

import requests
import json

response = requests.post(
  url="https://sudoapp.dev/api/v1/chat/completions",
  headers={
    "Authorization": "Bearer <SUDO_API_KEY>",
  },
  data=json.dumps({
    "model": "gpt-4o",
    "messages": [
        	{
        		"role": "developer",
        		"content": "You are a helpful assistant."
        	},
        	{
        		"role": "user",
        		"content": "Hello! Give me a study plan to learn Python."
        	}
    	],
    	"store": true
	})
)
The API also supports streaming.

Next Steps

Explore the API capabilities and available models: