Run Fireworks Batch Files After the API Pause

Run a small Fireworks JSONL workload through the supported migration client and inspect results by request ID.

By Chat Overview Published Updated
Bulk inference
JSONL file
Model
Local client
Result IDs
Checked results
  • Errors
  • Coverage
  • Usage

Synopsis

Fireworks has paused its Batch API: new jobs are not accepted, and dataset uploads fail. Its notice also announces deletion of stored Batch inputs and outputs. Keep local copies of required data. The supported migration client sends a local JSONL file through the regular inference API instead.

This example uses serverless inference and two requests, without creating a GPU deployment. Regular serverless rates apply; the former Batch discount does not apply to this route.

Prepare the input

Use Python 3.10 or later, a Fireworks account, an API key, and an available serverless text model. Download batch_to_realtime.py from the official migration example . Review the downloaded script before running it. Set FIREWORKS_API_KEY in the process environment without saving it in source control.

Save this as batch_input.jsonl, with one complete JSON object per line:

{"custom_id":"capital-1","body":{"messages":[{"role":"user","content":"Name the capital of France. Reply with the city name only."}],"max_tokens":32}}
{"custom_id":"capital-2","body":{"messages":[{"role":"user","content":"Name the capital of Japan. Reply with the city name only."}],"max_tokens":32}}

Run the file

Choose an available serverless model from the model library . Set MODEL_ID to its full identifier, such as accounts/fireworks/models/gpt-oss-120b, after checking availability and pricing. Run the command in the directory containing the downloaded script and input file. It sends paid requests to Fireworks:

python3 batch_to_realtime.py   --input batch_input.jsonl   --output results.jsonl   --model "$MODEL_ID"   --concurrency 1

Check and resume

Match output rows by custom_id, not line order. Confirm that both IDs have successful responses and inspect the generated answers. Failed rows are written to results.jsonl.errors.jsonl by default. Exit status 0 means every row has a result; 1 means some rows remain unsuccessful, and 2 means the run stopped early, for example because authentication or model selection failed.

Rerun the same command with the same input, model, and output file to retry unfinished rows. Completed IDs are skipped. Use a new output file when changing prompts or models, so earlier results are not mistaken for the new run.

For larger workloads, compare the preemptible-deployment migration with serverless costs. A dedicated deployment can keep accruing charges after the client exits and needs separate cleanup.

Sources