Inference
Warm a fine-tuned model with the readiness agent
Call the model readiness A2A agent over JSON-RPC to warm a fine-tuned model, then poll the task or receive a push notification when it is ready.
POST
Warm a fine-tuned model with the readiness agent
POST /v1/model-readiness/a2a
The model readiness agent is an A2A 0.3 agent with
one skill, Warm a fine-tuned model. Send it one of your fine-tuned models’
IDs and it creates a task that warms the model and ends when the model is
ready, or when it could not be made ready. No inference is run. Poll the task,
or give the agent an HTTPS callback that receives the task once it ends. Its
agent card is at
GET /v1/model-readiness/agent-card.json.
Every call is one JSON-RPC 2.0 request with your API key in X-API-Key. The
HTTP status is 200 for every JSON-RPC response; read result or error in
the body.
Methods
Streaming is not supported, and a task cannot be continued with another
message.
Create a task
Sendmessage/send with one data part whose data holds model_id, the
UUID of one of your team’s fine-tuned models. The model must have a published
artifact, and not every fine-tuned model can be warmed this way; an unsupported
model returns error -32602.
messageId makes the call idempotent: sending the same request with the same
messageId returns the same task, and reusing a messageId for a different
request returns -32602.
message-send.json
configuration to poll instead of receiving a push notification.
Task
message/send, tasks/get and tasks/cancel return an A2A task.
Response
warmup_timeout.
Poll or cancel a task
tasks-get.json
tasks/cancel to cancel a task that has not ended.
Canceling a task that has ended returns -32002.
Push notifications
A task has at most one push configuration,default unless you give it an
id. Set it in message/send: tasks/pushNotificationConfig/set and
delete return -32602 once the task has ended or while the agent is
processing it. get and delete return -32001 when the task has no push
configuration with the requested ID.
When the task completes or fails, the agent sends an HTTPS
POST of the task
object to url. A canceled task sends no notification. It retries a failed delivery up to 5 attempts in all. Delivery is at
least once: deduplicate by task id and status.timestamp, and check the
token before trusting a notification.
Limits
Each team member can have at most 3 tasks that have not ended, and can create at most 20 tasks per hour. A request over either limit returns-32602.
A task that has ended is kept for 7 days after it was created. After that,
calls for it return -32001.
Errors
A missing or invalid API key returns HTTP
401.
