モデルを選ぶ
モデルを探して入力スキーマを確認し、受け付ける項目だけを送ります。
モデルカタログ
各モデルには slug と入力スキーマがあります。 GET /api/v1/models は一覧を返し、 GET /api/v1/models/{slug} は 1 件を返します。OpenAPI ドキュメントでは各入力スキーマを次の場所で公開しています: x-models.
入力の検証
モデルごとに記載されたフィールドのみ受け付けます。不明なフィールド、必須フィールドの欠落、許可された選択肢以外の値は 400 INVALID_MODEL_INPUT で拒否されます。
料金を取得
GET /api/v1/prices returns customer rates in USD micro-units. Check enabled before submitting. With rateCard, match one rule by when, then multiply its priceMicros by quantityField when present; otherwise use the flat priceMicros. Apply model input defaults first. Send the final task quote as expectedPriceMicros to refuse a changed price.