Completions
POST /<lane>/v1/completions — the OpenAI legacy text-completions shape, kept for
older integrations. Prefer Chat or
Responses for new work.
Request
Section titled “Request”curl "https://api.opengateway.one/oss/v1/completions" \ -H "Authorization: Bearer $OPENGATEWAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-turbo-hub-gpt-oss-20b", "prompt": "// a one-line TypeScript type guard for string\n", "max_tokens": 64 }'Response
Section titled “Response”{ "id": "cmpl-...", "object": "text_completion", "model": "claude-turbo-hub-gpt-oss-20b", "choices": [ { "index": 0, "text": "const isString = (v: unknown): v is string => typeof v === 'string';", "finish_reason": "stop" } ]}Streaming is supported via stream: true.
OpenGateway Guide
Ask about configuring OpenGateway — lanes, base URLs, client setup, model choice, or an error you hit. Answers are grounded in the docs.