completions
Methods
Completions
curl https://api.egp.scale.com/v5/completions \ -H 'Content-Type: application/json' \ -H "x-api-key: $SGP_API_KEY" \ -d '{ "model": "model", "prompt": "string" }'
{ "id": "id", "choices": [ { "finish_reason": "stop", "index": 0, "text": "text", "logprobs": { "text_offset": [ 0 ], "token_logprobs": [ 0 ], "tokens": [ "string" ], "top_logprobs": [ { "foo": 0 } ] } } ], "created": 0, "model": "model", "object": "text_completion", "system_fingerprint": "system_fingerprint", "usage": { "completion_tokens": 0, "prompt_tokens": 0, "total_tokens": 0, "completion_tokens_details": { "accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0 }, "prompt_tokens_details": { "audio_tokens": 0, "cached_tokens": 0 } } }
Domain types