Skip to main content
POST

Authorizations

Authorization
string
header
required

Wallet API key fr_... from POST /v1/auth/keys.

Body

application/json

Model parameters follow each model's supported_parameters (today max_tokens): others are ignored and named in X-Floprouter-Ignored-Parameters, or refused with provider.require_parameters. A non-empty tools gets 404 (no model is served with tool use yet). tool messages, non-text parts, prompt, n > 1 and enabled plugins get 400. transforms, user, session_id, metadata, trace, debug, service_tier are accepted and ignored.

messages
object[]
required
Minimum array length: 1
model
string

Model id from GET /v1/models (required; there is no account default).

Example:

"qwen/qwen3-8b"

max_tokens
integer
default:256

Sets the escrow together with the prompt size. max_completion_tokens is accepted as an alias.

Required range: 1 <= x <= 32768
stream
boolean
default:false
stream_options
object

Accepted; the usage chunk is always sent.

provider
object

Provider preferences. A provider is a FLOP miner; its slug is the miner's SS58 address (the endpoint host is accepted as an alias).

flop
object
models
string[]

Fallback models, tried in order after model when it has no serving provider or the request is too large for it; never after any output. The response model names the model used.

route
enum<string>
Available options:
fallback
temperature
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

top_p
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

top_k
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

frequency_penalty
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

presence_penalty
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

repetition_penalty
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

min_p
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

top_a
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

seed
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

stop
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

response_format
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

logit_bias
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

logprobs
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

top_logprobs
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

reasoning
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

reasoning_effort
any

Ignored unless the model lists it in supported_parameters (none does today); with provider.require_parameters the request is refused.

tools
array

Non-empty: 404, no endpoint supports tool use yet.

plugins
array

Enabled plugins are refused (400): none exists here.

transforms
array

Accepted and ignored.

user
string

Accepted and ignored.

Response

Verified reply. With stream: true the body is text/event-stream.

id
string

Session id.

object
any
created
integer
model
string
provider
string

The miner (provider slug: its address).

choices
object[]
usage
object
flop
object