OpenPond
Back to Docs/cURL quickstart

cURL quickstart

List hosted OpenPond models and create one completion over HTTP.

cURL quickstart

List public hosted models:

bash
curl https://api.openpond.ai/opchat/v1/models \ -H "Authorization: Bearer $OPENPOND_API_KEY"

Create one completion with a model ID returned by that request:

bash
curl https://api.openpond.ai/opchat/v1/chat/completions \ -H "Authorization: Bearer $OPENPOND_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"openpond-chat","messages":[{"role":"user","content":"Say hello."}]}'

Do not paste a real API key into terminal recordings, issue comments, or docs.

Next: Authentication and scopes.