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!
POST https://api.ppq.ai/chat/completionshttps://api.ppq.ai
Model Name | Model ID | Provider | Max Context | Date Added | Input Rate | Output Rate | Average Cost | Prompts / $1 |
|---|---|---|---|---|---|---|---|---|
| No models available | ||||||||
Model Name | Model ID | Provider | Max Context | Date Added | Input Rate | Output Rate | Average Cost | Prompts / $1 |
|---|---|---|---|---|---|---|---|---|
| No models available | ||||||||
import requests
url = "https://api.ppq.ai/v1/models"
response = requests.get(url)
print(response.json())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())Convert audio to text using our OpenAI-compatible transcription API. Powered by Deepgram Nova-3 for high-quality, accurate transcriptions.
POST https://ppq.ai/api/v1/audio/transcriptionsmp3, mp4, mpeg, mpga, m4a, wav, webm (max 25MB)
file*The audio file to transcribemodelModel to use: "nova-3" (default) or "nova-2"response_formatFormat: json, text, srt, vtt, or verbose_json (default: json)languageLanguage code (e.g., "en", "es", "fr") or "multi" for auto-detectpromptOptional text to guide the model's stylefrom openai import OpenAI
# Initialize client with PayPerQ API
client = OpenAI(
api_key="",
base_url="https://ppq.ai/api/v1"
)
# Transcribe audio file
with open("audio.mp3", "rb") as audio_file:
transcription = client.audio.transcriptions.create(
model="nova-3", # Deepgram Nova-3
file=audio_file,
response_format="json" # Options: json, text, srt, vtt, verbose_json
)
print(transcription.text)