Welcome to the PayPerQ API!

Flame

Our API is OpenAI Compatible, which means that you can plug it into a number of third party softwares like Cursor and Cline, even with non-openAI models. To check on costs, see the account activity section. For coding, we recommend using Sonnet3.7 as it has prompt caching and agentic capabilities.

For questions or support, please use the chat widget in the bottom right!

Your API Key:

Endpoint

POST https://api.ppq.ai/chat/completions

https://api.ppq.ai

Popular Third Party Integration Tutorials:

Available Models:

claude-3.7-sonnetdeepseek-chat-v3-0324gemini-2.5-pro-preview-03-25llama-4-scoutgrok-3-betallama-4-mavericko1o3-minio1-minigpt-4odeepseek-r1gpt-4.5-previewgemini-2.5-pro-exp-03-25deepseek-chatclaude-3.5-sonnetllama-3.1-405b-instructllama-3-70b-instructgpt-4o-minigemini-flash-1.5mixtral-8x7b-instructclaude-3-5-haiku-20241022:betagemini-2.0-flash-expgrok-2qwq-32b-previewnova-pro-v1llama-3.1-nemotron-70b-instructgemini-flash-1.5gpt-4dolphin-mixtral-8x22b

Code Examples

import requests

api_key = ""
url = "https://api.ppq.ai/chat/completions"

headers = {
    "Content-Type": "application/json",
    "Authorization": f"Bearer {api_key}"
}

data = {
    "model": "claude-3.5-sonnet",
    "messages": [{"role": "user", "content": "Hello, how are you?"}]
}

response = requests.post(url, json=data, headers=headers)
print(response.json())