How the generation is billed. A finished wallet job that was charged also includes the amount, as a decimal string, and usually its currency. Token counts are never returned.
OptionalcallbackThe callback requested with the job. Inside the callback Analysis it still
reads pending: the API records sent or failed after the run.
Optionalcompleted_Set when the job finishes. Absent while it runs and on jobs that read as interrupted.
OptionalerrorJob ID, for getGeneration.
Optionalincomplete_Present from the start. null only when the model could not be resolved (model_unavailable).
OptionaloutputOptionaljson?: TPresent on completed jobs that gave response_format: the parsed
object, or null when the model did not return valid JSON.
Assistant turns, ready to append to your messages history.
queued or in_progress while running; completed, incomplete or failed once finished.
A generation job.
Ttypesoutput.jsonwhenresponse_formatwas given. The API does not check the output against the schema, and neither does the SDK, soTis what you expect, not a guarantee.