页面简介
Run evals, data generation, and background jobs on GLM 5.3, Kimi K3, DeepSeek V4.1 Flash, and DeepSeek V4.1 Flash 1017 at 50% of the Standard price with Spot, using the same model and the same API.
正文摘录
Spot is available to Tier 3+ and Enterprise accounts. An account reaches Tier 3 after spending or adding $500 in credits (see Spending tiers). Requests from other accounts return 403. Spot runs the same models through the same API at 50% of the Standard price. It’s for work that doesn’t need an immediate answer: Evals Data generation Background and batch-style jobs Routers Spot is available for GLM 5.3, Kimi K3, DeepSeek V4.1 Flash, and DeepSeek V4.1 Flash 1017, with more serverless models to follow. The tradeoff is availability. Spot is best-effort, with no availability guarantee. Under high load, Spot is served after other traffic, and throughput can drop to zero. Fireworks doesn’t fall back to Standard automatically, so plan to retry or send the request to Standard yourself (see Fall back to Standard). Pricing Prices are USD per 1M tokens. ModelModeInputCached inputOutputGLM 5.3Spot$0.70$0.13$2.20GLM 5.3Standard$1.40$0.26$4.40Kimi K3Spot$1.50$0.15$7.50Kimi K3Standard$3.00$0.30$15.00DeepSeek V4.1 FlashSpot$0.15$0.003$0.60DeepSeek V4.1 FlashStandard$0.30$0.006$1.20DeepSeek V4.1 Flash 1017Spot$0.15$0.003$0.60DeepSeek V4.1 Flash 1017Standard$0.30$0.006$1.20 See Serverless pricing for every mode. Use Spot There are two ways to send a request to Spot. Both use the same API and the same GLM 5.3 model. ModelModel ID (with service_tier: "spot")Spot model IDGLM 5.3accounts/fireworks/models/glm-5p3accounts/fireworks/models/glm-5p3-spotKimi K3accounts/fireworks/models/kimi-k3accounts/fireworks/routers/kimi-k3-spotDeepSeek V4.1 Flashaccounts/fireworks/models/deepseek-v4p1-flashaccounts/fireworks/routers/deepseek-v4p1-flash-spotDeepSeek V4.1 Flash 1017accounts/fireworks/models/deepseek-v4p1-flash-1017accounts/fireworks/routers/deepseek-v4p1-flash-1017-spot The examples below use GLM 5.3. For the service_tier: "spot" examples, including the fallback example, use the model’s Standard model ID from the table. Use the Spot model IDs only with Use the Spot model ID. Set service_tier to "spot" Keep the GLM 5.3 model ID, accounts/fireworks/models/glm-5p3, and set service_tier: "spot". This works on OpenAI-compatible chat completions and completions, and on the Anthropic-compatible messages API. PythoncURLimport os from fireworks import Fireworks client = Fireworks(api_key=os.environ["FIREWORKS_API_KEY"]) response = client.chat.completions.create( model="accounts/fireworks/models/glm-5p3", messages=[{"role": "user", "content": "Classify this support ticket: 'My invoice is wrong.'"}], extra_body={"service_tier": "spot"}, ) print(response.choices[0].message.content) Use the Spot model ID Set model to accounts/fireworks/models/glm-5p3-spot. No service_tier parameter is needed. PythoncURLimport os from fireworks import Fireworks client = Fireworks(api_key=os.environ["FIREWORKS_API_KEY"]) response = client.chat.completions.create( model="accounts/fireworks/models/glm-5p3-spot", messages=[{"role": "user", "content": "Classify this support ticket: 'My invoice is wrong.'"}], ) print(response.choices[0].message.content) Rate limits The Spot limit adjusts with available capacity and can be 0. See Serverless rate limits for how limits work on other modes. Errors CodeMeaningWhat to do403Your account isn’t eligible for Spot.Send the request to Standard. Spot is available to Tier 3+ and Enterprise accounts.429Your Spot limit is reached, or Spot capacity is unavailable. When the Spot limit is currently 0, the response includes Retry-After: 60.Honor Retry-After, then send the request to Standard yourself.503Spot is temporarily unavailable (for example, during load shedding).Honor Retry-After, then send the request to Standard yourself. When Spot capacity is unavailable, requests can return 429 or 503. Treat both as retryable, or send the request to Standard. Fall back to Standard Fireworks doesn’t fall back to Standard automatically. If a Spot request returns 429 or 503, you can retry Spot after the Retry-After interval or send the request to Standard instead. Standard pricing and rate limits would apply for the latter. Pythonimport os from fireworks import APIStatusError, Fireworks client = Fireworks(api_key=os.environ["FIREWORKS_API_KEY"]) MODEL = "accounts/fireworks/models/glm-5p3" def complete(messages): try: return client.chat.completions.create( model=MODEL, messages=messages, extra_body={"service_tier": "spot"}, ) except APIStatusError as error: if error.status_code not in (429, 503): raise # Spot returned 429 or 503, so send the request to Standard. return client.chat.completions.create(model=MODEL, messages=messages) response = complete([{"role": "user", "content": "Summarize this eval result in one line."}]) print(response.choices[0].message.content) Related Serverless Modes Serverless pricing Serverless rate limits Inference error codes Run large, non-urgent workloads on Fireworks Was this page helpful?YesNo⌘I