Short answer. Test and script Plugsky with cURL. POST to https://api.plugsky.com/v1/chat/completions with a Bearer key and a plugsky-* model ID. Streaming uses curl -N for live tokens.
What the cURL integration covers
cURL is the fastest way to test Plugsky from a shell. Every endpoint is plain HTTPS JSON, so cURL works as both a debugging tool and a scripting tool. The examples below use environment variables for the key.
Chat completion
curl https://api.plugsky.com/v1/chat/completions -H "Authorization: Bearer $PLUGSKY_API_KEY" -H "Content-Type: application/json" -d '{
"model": "plugsky-pro",
"messages": [{"role": "user", "content": "What is an OpenAI-compatible API?"}],
"temperature": 0.2,
"max_tokens": 256
}'Streaming
curl -N https://api.plugsky.com/v1/chat/completions -H "Authorization: Bearer $PLUGSKY_API_KEY" -H "Content-Type: application/json" -d '{"model":"plugsky-pro","messages":[{"role":"user","content":"Count to five."}],"stream":true}'The -N flag disables buffering so tokens appear as they arrive.
List models
curl https://api.plugsky.com/v1/models -H "Authorization: Bearer $PLUGSKY_API_KEY"Embeddings
curl https://api.plugsky.com/v1/embeddings -H "Authorization: Bearer $PLUGSKY_API_KEY" -H "Content-Type: application/json" -d '{"model":"plugsky-embed","input":"hello world"}'Tool calling
curl https://api.plugsky.com/v1/chat/completions -H "Authorization: Bearer $PLUGSKY_API_KEY" -H "Content-Type: application/json" -d '{
"model": "plugsky-pro",
"messages": [{"role": "user", "content": "Weather in Dubai?"}],
"tools": [{"type":"function","function":{"name":"get_weather","description":"Get weather for a city","parameters":{"type":"object","properties":{"city":{"type":"string"}},"required":["city"]}}}]
}'Useful flags
-s: silent (no progress meter).-S: show errors even when silent.-i: include response headers (useful forx-plugsky-served-modeland rate-limit headers).-w '\n%{http_code}\n': print the HTTP status code.jq: pipe throughjq '.choices[0].message.content'to extract text.
Scripting patterns
For shell scripts, store the response in a variable and extract fields with jq. Add set -euo pipefail so a failed request stops the script. Use a temporary file for large prompts rather than inlining them, and quote variables to avoid word splitting. For batch jobs, add a small sleep between requests to stay under RPM limits, and retry 429 responses using the Retry-After header.
Limits and gotchas
Main text models: 262,144-token context; plugsky-mistral-medium and vision models: 131,072; plugsky-translate: 32,768; embeddings: 8,192 input. Builder: 256K input / 32K output per request; Scale: 512K input / 32K output. Concurrency: Builder 10 / 600 RPM, Scale 16 / 1,200 RPM, Hobby 4 / 120 RPM. Cap max_tokens at the plan output ceiling.
Common errors
- 401: missing, revoked or wrong-host key.
- 404: wrong base URL path or unknown model ID.
- 400 (context): input plus reserved output exceeds the window.
- 429: RPM, concurrency or daily quota exhausted. Check
Retry-After. - 5xx: retry with backoff.
Production checklist
- Never commit keys; read them from environment variables.
- Use
jqor a JSON parser rather than grep for extraction. - Log request IDs and status codes; keep prompts out of shell history.
- Test 429 and context-overflow paths before launch.
What we did not verify
- We did not benchmark latency or throughput.
- We used
https://api.plugsky.com/v1; confirm the host in your account docs.
Frequently asked questions
Can I use cURL with Plugsky?
Yes. The API is plain HTTPS JSON, so cURL works for chat, streaming, embeddings and tool calling.
What base URL should cURL use?
Use https://api.plugsky.com/v1, including the /v1 suffix and without a trailing slash.
How do I stream with cURL?
Add stream: true to the body and use curl -N to disable buffering. Tokens arrive as server-sent events.
How do I extract the answer text?
Pipe the response through jq: jq -r '.choices[0].message.content'.
How do I list available models?
GET https://api.plugsky.com/v1/models with an Authorization: Bearer header.
What embedding dimensions should I expect?
2,048 dimensions with an 8,192-token input window.
How do I fix a 401 or 404?
Confirm the key and host api.plugsky.com; use https://api.plugsky.com/v1 and a model ID from /v1/models.
Related pages
Try Plugsky from your shell
Start free, run the cURL examples, then choose the plan that matches your concurrency.
Start Free → Read the docsSources
API behaviour was checked against the OpenAI API reference on 20 November 2026. Plugsky limits were checked against its docs on the same date.
| Source | Page checked | Checked |
|---|---|---|
| OpenAI | platform.openai.com/docs/api-reference | 20 Nov 2026 |
| Plugsky | plugsky.com/docs and plugsky.com/pricing | 20 Nov 2026 |
| Plugsky | plugsky.com/models | 20 Nov 2026 |
Last checked 20 November 2026. Plugsky's canonical plan numbers live at /pricing; this page explains the integration and does not replace the plan terms.
Sources and dated checks
Checked 20 November 2026. Primary sources checked 20 November 2026: OpenAI API reference, Anthropic API getting started, Cloudflare Workers AI. Confirm current limits and pricing in the provider console before capacity planning.