Overview
Crazyrouter supports calling OpenAI GPTs (custom GPT applications) through the standard Chat Completions API. Simply set the model name to the GPTs-specific format.Model Name Format
gizmo_id is the unique identifier for the GPT, which can be extracted from the GPTs URL.
Getting the Gizmo ID
- Visit the ChatGPT GPTs Store
- Open the target GPT application
- Extract the ID from the URL:
https://chatgpt.com/g/g-B3hgivKK9-xxx→ ID isg-B3hgivKK9
Code Examples
GPTs conversations support streaming output by setting
stream: true. Billing is calculated based on GPT-4 model pricing.