Quickstart
Prerequisites
Option 1: OpenAI-compatible endpoint
curl https://app.promptshuttle.com/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4o",
"messages": [
{"role": "user", "content": [{"type": "text", "text": "Say hello!"}]}
]
}'from openai import OpenAI
client = OpenAI(
base_url="https://app.promptshuttle.com/api/v1",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4o",
messages=[{"role": "user", "content": "Say hello!"}],
)
print(response.choices[0].message.content)Option 2: Create and run a flow
1. Create a flow
2. Edit the template
3. Activate for an environment
4. Execute via API
Next steps
Last updated