Chat completions

POST /v1/chat/completions. Same request body as OpenAI's Chat Completions API, text input only for now. Image and audio parts return a 400 error. Unknown parameters are accepted and ignored.

Parameters

ParameterSupportNotes
messagesSupported
max_tokensSupported
max_completion_tokensSupported
temperatureSupported
top_pSupported
stopSupported
seedSupported
streamSupported
stream_optionsSupported
toolsSupportedOn models that list tools (see /v1/models)
tool_choiceSupportedOn models that list tools
parallel_tool_callsSupportedOn models that list tools
response_formatSupportedOn models that list JSON mode
reasoning_effortSupportedOn reasoning models; ignored elsewhere
presence_penaltyAccepted at its default value; other values return 400
frequency_penaltyAccepted at its default value; other values return 400
nAccepted at its default value; other values return 400Only 1
userAccepted and ignored
metadataAccepted and ignored
storeAccepted and ignored
service_tierAccepted and ignored
prompt_cache_keyAccepted and ignored
safety_identifierAccepted and ignored
verbosityAccepted and ignored
logit_biasAccepted at its default value; other values return 400
modalitiesAccepted at its default value; other values return 400Only ["text"]
logprobsAccepted at its default value; other values return 400Only false
top_logprobsAccepted at its default value; other values return 400Not supported

Usage and cost

Non-streaming responses include usage with token counts and usage.cost, the charge in euros, and the header x-powerspring-cost-eur with the same value. Streaming responses include usage (with cost) in the last chunk when you set stream_options.include_usage. Every charge also appears in your usage page.