relay_run
Execute a single AI model call to test prompts before building full workflows. Returns output, token usage, estimated provider cost, and trace URL.
Instructions
Execute a single AI model call. Useful for testing prompts before building full workflows. Returns output, token usage, estimated provider cost, and trace URL. Note: Cost tracks your provider bill (OpenAI/Anthropic), not RelayPlane fees - we're BYOK.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model in provider:model format (e.g., 'openai:gpt-4o', 'anthropic:claude-3-5-sonnet-20241022') | |
| prompt | Yes | The user prompt to send | |
| systemPrompt | No | Optional system prompt | |
| schema | No | Optional JSON schema for structured output |