Text model API
Spark API
Spark is Rentprompts own model which is auto router and select the best model for your use case
- Model id
spark- Takes
- Text (required)
- Makes
- Text
- Endpoint
POST /api/v1/chat/completions- Made by
- Rentprompts
- Mode
- Synchronous
Call Spark
Base URL
https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.Model spark
POST /api/v1/chat/completions
curl https://payload.rentprompts.com/api/v1/chat/completions \
-H "Authorization: Bearer rp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "spark",
"messages": [
{
"role": "user",
"content": "Write a haiku about APIs."
}
],
"max_tokens": 256
}'Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →
What a typical call costs
Worked out from Spark's published price (0.01 J / request). You pay only for successful results, from your Joule balance.
- 1 request0.01 Joules
- 10 requests0.1 Joules
Send requests to POST /api/v1/chat/completions. Spark answers synchronously: the result comes back in the response to the same request.
Settings
Optional parameters this model accepts (pass them in settings on /v1/run, or as top-level fields where OpenAI defines them).
This model has no extra settings. Send the standard fields shown in the example.