Create a NexusAPI generation task
nexusapi_generateCreate a paid asynchronous generation task by specifying a model and prompt. Obtain user approval for billing before submitting to avoid surprise charges.
Instructions
Create a paid asynchronous generation task. Call nexusapi_get_model_schema first and ask the user to approve potentially billable generation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_name": "<model_name>",
"prompt": "<prompt>"
},
"name": "nexusapi_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Generation instruction | |
| model_name | Yes | Exact NexusAPI model_name value | |
| parameters | No | Additional fields allowed by the live schema for this model |