Submit a prompt to Ninja and start execution in the background.
taskId and pending status.
| Value | Description |
|---|---|
fast | Fastest and cheapest. Best for simple tasks. |
smart | Balanced speed and quality. (default) |
super-smart | Most capable. Best for complex reasoning. |
result field in the response will be a JSON object conforming to this schema. Must follow the supported schema
format. Maximum 5 KB when serialized.pending for newly created tasks.resultSchema field must be a valid JSON Schema. The following features are not supported:
oneOf, anyOf, not, if/then/elseminimum, maximum, multipleOf)minLength, maxLength)minItems, maxItems)"type": ["string", "null"])object, array, string, number, integer, boolean
Example: