API · Utility
GET /utility/plan
A task in plain words turned into a chain of calls, with inputs filled in and a cost estimate.
| Request | GET /v1/utility/plan |
| Operation id | utility.plan.get |
| Cost | Free |
| Auth | None. |
A task in plain words turned into a chain of calls, with inputs filled in and a cost estimate.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
task | string | no | What you want, in plain words. Example: get the comments on https://www.youtube.com/watch?v=dQw4w9WgXcQ. |
query | string | no | Same as task. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The plan: steps, missing inputs, total cost. | |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No such endpoint, recipe or platform. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Utility is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.