SPOT TAPE
FRNT-200K2.180+1.42%
MID-128K0.4204−0.81%
OW-70B0.0840+3.11%
OW-8B0.0191+0.44%
VIS-1M1.6400−2.19%
RSN-XL6.9000+0.93%
EMB-S0.01100.00%
14:02:07 UTC
Documentation v1 · UPDATED 21 AUG 2026
Get an API key
On this page

POST /v1/sellers/{id}/asks

Rest an ask on the model book. Rejected while the seller is Suspended or Banned.

Auth: X-Seller-API-Key.

See rate limits and errors. Capacity sizing and price derivation are in the seller flow.

Request

fieldtypenotes
model_idstringMust be in supported_models
pricedecimal stringPer 1,000 tokens, strictly positive
capacitynumberTokens offered
ttl_secondsnumberDefaults to 300

Response

ask_id, seller_id, model_id, price, capacity, remaining, created_at, expires_at.

Errors

unauthorized, forbidden, invalid_model, not_found. Status codes on Errors.

curl -s http://127.0.0.1:8080/v1/sellers/SELLER_ID/asks \
  -H "X-Seller-API-Key: sk-seller" \
  -H "Content-Type: application/json" \
  -d '{"model_id":"gpt-4","price":"10","capacity":100,"ttl_seconds":300}'
use token_gateway_sdk::{Decimal, RegisterSellerRequest, SellerClient, SellerKey, SubmitAskRequest};
// {"model_id":"gpt-4","price":"10","capacity":100,"ttl_seconds":300}

let mut client = SellerClient::new("http://127.0.0.1:8080", None);
let registered = client
    .register(&RegisterSellerRequest {
        name: "acme".into(),
        endpoint_url: "http://127.0.0.1:9000/infer".into(),
        supported_models: vec!["gpt-4".into()],
        api_key: "sk-seller".into(),
    })
    .await?;
client.set_key(SellerKey(registered.api_key.clone()));
let ask = client
    .submit_ask(
        registered.seller_id,
        &SubmitAskRequest {
            model_id: "gpt-4".into(),
            price: Decimal::from(10),
            capacity: 100,
            ttl_seconds: Some(300),
        },
    )
    .await?;
let _ = ask.ask_id;
# {"model_id":"gpt-4","price":"10","capacity":100,"ttl_seconds":300}
from token_gateway import SellerTokenGateway

gw = SellerTokenGateway("http://127.0.0.1:8080")
seller = gw.register_seller(name="acme", endpoint_url="http://127.0.0.1:9000/infer", supported_models=["gpt-4"], api_key="sk-seller")
gw.submit_ask(seller.seller_id, model_id="gpt-4", price="10", capacity=100, ttl_seconds=300)
// {"model_id":"gpt-4","price":"10","capacity":100,"ttl_seconds":300}
import { SellerClient } from "@ai-token-gateway/sdk";

const seller = new SellerClient({ baseUrl: "http://127.0.0.1:8080" });
const registered = await seller.register({
  name: "acme", endpoint_url: "http://127.0.0.1:9000/infer",
  supported_models: ["gpt-4"], api_key: "sk-seller",
});
seller.setApiKey(registered.api_key);
await seller.submitAsk(registered.seller_id, { model_id: "gpt-4", price: "10", capacity: 100, ttl_seconds: 300 });