POST/api/models

カスタムモデルを作成する

組織所有のモデル行、そのデプロイメント(常にcustomer_managedで、お客様自身のプロバイダーまたはエンドポイントに課金)、既定のチェーンを作成します。べき等です。完全に同じ再実行は既存の行で200を返し、同じスラッグで属性が異なる場合は409、公開モデルのスラッグの場合は409 model_slug_reservedを返します(代わりに公開モデルにデプロイメントを追加してください)。base_urlを指定したデプロイメントには確認済みの支払い方法が必要で、1時間あたり10件の新規エンドポイント数に含まれます。

認証: AuthorizationヘッダーにBearer形式のAPIキー

リクエストボディ

  • org_idstring | null

    所有組織。キーの場合は暗黙的に決まります。セッションの呼び出し元は指定する必要があります。

  • slugstring必須

    先頭は英字で、英小文字と数字を単一の.、_、-で区切ります。リクエストで送信するモデル名になります。

  • display_namestring必須
  • descriptionstring | null
  • release_datestring | null
  • context_windowinteger | null
  • max_output_tokensinteger | null
  • input_modalitiesarray<enum>
    既定値: ["text"]
  • output_modalitiesarray<enum>
    既定値: ["text"]
  • supported_paramsobject

    モデルがサポートするパラメーター(例:{"temperature": true, "tools": true})。

    既定値: {}
  • categorystring | null
  • tagsarray<string>
    既定値: []
  • providersarray<object>必須
    providers
    • providerenum必須
      "openai""anthropic""gemini""azure_openai""openrouter""bedrock""local""fireworks""modal""experiential_cloud"
    • provider_model_idstring必須
    • base_urlstring | null

      localとmodalでは必須で、オリジン固定のプロバイダーでは指定できません。ポートとパスを任意で含む明示的なhttp(s)エンドポイントで、userinfo、クエリ、フラグメントは不可です。

    • regionstring | null
    • api_versionstring | null
    • provider_connection_idstring | null

      同じプロバイダーの、APIキー型のBYOK接続のいずれかに固定します。nullの場合はリクエスト時にプロバイダーから解決します。

    • input_nano_usd_per_millioninteger | null

      100万トークンあたりの整数のnano-USD。nullは不明を意味します。

    • cached_input_nano_usd_per_millioninteger | null
    • cache_write_input_nano_usd_per_millioninteger | null
    • cache_write_1h_input_nano_usd_per_millioninteger | null
    • long_context_cache_write_input_nano_usd_per_millioninteger | null
    • long_context_cache_write_1h_input_nano_usd_per_millioninteger | null
    • output_nano_usd_per_millioninteger | null
    • reasoning_nano_usd_per_millioninteger | null
    • pricing_sourcestring | null

      料金の出典(例:self-reported)。provider-free-tierは予約済みのため拒否されます。

    • capabilitiesobject

      wireの機能。モデルのsupported_paramsを初期値とし、明示的なキーが優先されます。

      既定値: {}
    • uptime_30dnumber | null
    • throughput_tpsnumber | null
    • latency_p50_msnumber | null
    • stats_sourceenum
      "openrouter""observed""estimate"null
    • endpoint_api_keystring | null

      localのみ。Authorization: Bearer <key>としてお客様のエンドポイントに送信されます。ボールトに保存され、返されることはありません。

レスポンス

  • 201

    作成しました。同一のリクエストを再実行すると同じボディで200を返します。

    レスポンス
    • modelobject

      カタログモデルの1行。

      model
      • idstring
      • slugstring

        リクエストがmodelとして送信する名前。

      • display_namestring
      • descriptionstring | null
      • release_datestring | null

        ISO形式の日付。

      • context_windowinteger | null

        公表されているウィンドウ(トークン数)。ほとんどの開発元では最大出力を含む合計値です。

      • max_output_tokensinteger | null
      • max_input_tokensinteger | null

        呼び出し元が実際に送信できるプロンプトの予算です(ウィンドウが合計の場合は、ウィンドウから最大出力を引いた値)。クライアントのコンパクションはcontext_windowではなくこの値に合わせてください。

      • input_modalitiesarray<enum>
      • output_modalitiesarray<enum>
      • supported_paramsobject

        モデルがサポートする論理パラメーター(例:{"tools": true})。

      • categorystring | null
      • tagsarray<string>
      • iconstring | null

        アイコンに使う開発元ファミリーのキー。

      • makerstring | null
      • owning_org_idstring | null

        カスタムモデルの場合はお客様の組織ID、公開モデルの場合はnullです。

      • preferred_rankinteger | null

        選定された順位(小さいほど上位)。順位がない場合はnullです。

      • statusstring

        activeまたはhidden。

      • created_atstring
      • updated_atstring
    • providersarray<object>
      providers
      • idstring

        デプロイメントID、またはお客様自身のプロバイダー接続で提供されるルートの場合はbyok:{connection_id}。ウォーターフォールの書き込みで使うトークンです。

      • model_idstring
      • providerstring

        お客様に表示されるプロバイダーID。自社のキャパシティで運用するプラットフォームのルートはexperiential_cloudと表示されます。

      • provider_model_idstring

        プロバイダーのwire id。

      • base_urlstring | null

        お客様が運用する(local、modal)デプロイメントのエンドポイント。

      • regionstring | null
      • api_versionstring | null
      • owning_org_idstring | null

        非公開ルートの場合はお客様の組織、公開ルートの場合はnullです。

      • provider_connection_idstring | null

        固定したBYOK接続(ある場合)。

      • connection_aliasstring | null

        BYOKルートのみ:接続のアカウントエイリアス。同じプロバイダーの2つのアカウントを区別します。

      • route_idstring | null

        リクエストでこのルートを正確に選択するための、組織ごとの不透明なハンドル。組織のコンテキストがない場合や、ルートがお客様のトラフィックを処理できない場合はnullです。

      • provider_statusobject

        このルートに関するプロバイダー自身の公開ステータス報告です。参考情報のみで、ルーティングには使用しません。

        provider_status
        • stateenum
          "incident_reported""no_incident_reported""stale_unavailable""no_verified_feed"
        • official_urlstring | null
        • checked_atstring | null
        • scopestring
        • limitationstring
        • incidentsarray<object>
        • advisoryboolean
      • provider_logo_urlstring

        レジストリのプロバイダーロゴ(存在する場合)。それ以外は省略されます。

      • billing_sourceenum

        host_managedはお客様のクレジットに課金し、customer_managedはお客様自身のプロバイダーまたはエンドポイントに課金します。

        "host_managed""customer_managed"
      • input_nano_usd_per_millioninteger | null
      • cached_input_nano_usd_per_millioninteger | null
      • cache_write_input_nano_usd_per_millioninteger | null
      • cache_write_1h_input_nano_usd_per_millioninteger | null
      • long_context_cache_write_input_nano_usd_per_millioninteger | null
      • long_context_cache_write_1h_input_nano_usd_per_millioninteger | null
      • cache_write_12h_input_nano_usd_per_millioninteger | null

        12時間キャッシュをサポートするルートでnullの場合、入力料金の2.5倍を意味します。

      • output_nano_usd_per_millioninteger | null
      • reasoning_nano_usd_per_millioninteger | null
      • image_output_nano_usd_per_millioninteger | null

        生成画像トークンの料金。nullの場合は出力として課金されます。

      • long_context_threshold_tokensinteger | null

        報告された入力トークン数がこの値に達すると、long_context_*の料金がリクエスト全体に適用されます。nullは一律料金を意味します。

      • long_context_input_nano_usd_per_millioninteger | null
      • long_context_cached_input_nano_usd_per_millioninteger | null
      • long_context_output_nano_usd_per_millioninteger | null
      • long_context_reasoning_nano_usd_per_millioninteger | null
      • unit_pricesobject

        単位課金ルートの唯一のメーター。

        unit_prices
        • kindenum
          "character""audio_second""video_second""image"
        • ratesobject

          バリアントごとの1単位あたりの整数のnano-USD(""は一律料金)。

      • off_peak_pricingobject

        週ごとのUTCピーク時間帯を含むオフピーク料金表(prices、peak_windows、off_peak_dates)。主要な料金はピーク時の価格です。存在しない場合は省略されます。

      • pricing_sourcestring | null
      • pricing_effective_atstring | null
      • capabilitiesobject

        ゲートウェイが適用するwireの機能(例:supports_tools、supported_reasoning_efforts)。

      • uptime_30dnumber | null

        パーセント。

      • uptime_recentnumber | null

        ルートの直近のリクエストのうち完了した割合(パーセント)。50リクエスト未満の場合はnullです。

      • uptime_recent_requestsinteger | null
      • throughput_tpsnumber | null

        観測されたデコードの1秒あたりのトークン数。

      • latency_p50_msnumber | null

        観測された最初のトークンまでの時間の中央値。

      • request_latency_p50_msnumber | null

        最初のトークンがなかった呼び出しの、観測されたエンドツーエンドのレイテンシーの中央値。

      • stats_sourceenum
        "openrouter""observed""estimate"null
      • statusstring
      • routableboolean | null

        ゲートウェイの有効なプランがこのプラットフォームのルートをルーティングするかどうか。該当しない場合はnullです。

      • requires_paymentboolean

        有料専用ルート(クレジットの購入が完了すると利用可能になります)。

      • requires_purchaseboolean

        購入が必要なルート($1のカード認証ではなく、実際の購入で利用可能になります)。

      • zdr_onlyboolean

        ゼロデータ保持でルーティングされたリクエストのみを処理します。

      • hidden_fallbackboolean
      • available_to_orgboolean | null

        組織がこのクローズドなルートを利用できるかどうか。組織のコンテキストがない場合やオープンなルートではnullです。

      • zero_data_retentionboolean | null

        詳細ルートのみ。nullはポスチャーの情報がないことを意味し、ZDR必須のポリシーでは非準拠として扱われます。

      • zero_data_retention_on_requestboolean | null

        ゲートウェイのリクエスト単位のZDR制約下でディスパッチされた場合のみZDR。

      • processing_region_setsarray<array<string>>
      • plan_discountsobject | null
        いずれか

        object

        • freenumber
        • pronumber
        • maxnumber
        • ultranumber
      • service_tier_ratesobject | null

        ルートが処理ティアごとに料金を設定している場合の、ティア別料金表(flex、priority)。100万トークンあたりのnano-USDです。

      • ladder_rankinteger | null

        モデルの公開プラットフォームルート内での表示上の位置(表示専用)。

      • ladder_lane_countinteger | null
      • ladder_scorenumber | null
      • ladder_factorsobject | null
      • endpoint_credential_last4string | null

        保存されたエンドポイントAPIキーの末尾4文字。

      • created_atstring
      • updated_atstring
    • default_waterfallarray<object>
      default_waterfall
      • idstring
      • positioninteger

        0が最初に試されます。

      • model_provider_idstring | null
      • provider_connection_idstring | null
      • target_kindenum
        "deployment""connection""model"
      • referenced_model_idstring | null
      • referenced_modelobject | null
        いずれか

        object

        • idstring
        • slugstring
        • display_namestring
        • statusstring
      • providerstring | null
      • provider_model_idstring | null
      • base_urlstring | null
      • statusstring
      • rungstring | null

        PUTまたはPATCHで送信するトークン(デプロイメントID、byok:{connection_id}、またはmodel:{model_id})。

      • fundingenum
        "platform""own_key""own_endpoint""fallback_model"null
      • healthobject | null
        いずれか

        object

        • statestring

          フリート全体の判定(healthy、degraded、recovering、throttled、circuit_open、disabledなど)。BYOKのルートは接続のステータスを報告します。

        • reasonstring | null
        • lifecycleenum
          "active""draining""retired"
    • retentionenum

      プラットフォームのルート全体でのゼロデータ保持:すべて、1つ以上、またはなし。

      "zdr_all_rungs""zdr_enforceable""not_zdr"null
    • huggingface_urlstring | null
    • release_urlstring | null
    • benchmarksarray<object>
      benchmarks
      • benchmarkstring
      • display_namestring
      • unitstring
      • higher_is_betterboolean
      • scorenumber
      • sourcestring
      • source_urlstring | null
      • retrieved_atstring
    • promotionsarray<object>
      promotions
      • labelstring
      • listedboolean
      • badge_styleenum
        "allowance""free"
      • display_onlyboolean
    • promotional_listedboolean
    • ads_on_all_requestsboolean

      このモデルへのプラットフォーム負担のリクエストすべてに、スポンサー広告が表示される場合があります。

  • 401

    APIキーがない、不明、または失効しています。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 403

    組織が審査中(org_under_review)であるか、base_urlのデプロイメントに確認済みの支払い方法が必要です(endpoint_requires_verified_payment)。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 404

    org_idがお客様が操作できない組織を指定しているか、provider_connection_idがお客様の接続ではありません。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 409

    スラッグが異なる属性で既に存在するか、公開モデルのスラッグです(model_slug_reserved)。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 422

    ボディの検証に失敗した、またはスキーマが適用するルール(pricing_source_reserved、異なるプロバイダーの接続、plan_connection_not_pinnableなど)に違反しました。

  • 429

    組織が直近1時間に10個のカスタムエンドポイントを作成しました(endpoint_creation_rate_limited)。Retry-Afterで待機する秒数を示します。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

リクエスト

curl -X POST 'https://api.experientiallabs.ai/api/models' \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "slug": "my-local-model",
  "display_name": "My Local Model",
  "supported_params": {
    "temperature": true,
    "tools": true
  },
  "context_window": 131072,
  "providers": [
    {
      "provider": "local",
      "provider_model_id": "my-model",
      "base_url": "https://models.acme.dev:8000/v1",
      "endpoint_api_key": "sk-acme-endpoint-4f9a2c7e1b",
      "input_nano_usd_per_million": 0,
      "output_nano_usd_per_million": 0,
      "pricing_source": "self-reported"
    }
  ]
}'

レスポンス

{
  "model": {
    "id": "0b8f3d2a-5c61-4e7f-9a12-7d4e6b1c9f30",
    "slug": "my-local-model",
    "display_name": "My Local Model",
    "description": null,
    "release_date": null,
    "context_window": 131072,
    "max_output_tokens": null,
    "max_input_tokens": 131072,
    "input_modalities": [
      "text"
    ],
    "output_modalities": [
      "text"
    ],
    "supported_params": {
      "temperature": true,
      "tools": true
    },
    "category": null,
    "tags": [],
    "icon": null,
    "maker": null,
    "owning_org_id": "3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10",
    "preferred_rank": null,
    "status": "active",
    "created_at": "2026-11-19T15:02:11.104512+00:00",
    "updated_at": "2026-11-19T15:02:11.104512+00:00"
  },
  "providers": [
    {
      "id": "5d2e9a71-3b4c-4f80-8e16-2a9c7b0d4e53",
      "model_id": "0b8f3d2a-5c61-4e7f-9a12-7d4e6b1c9f30",
      "provider": "local",
      "provider_model_id": "my-model",
      "base_url": "https://models.acme.dev:8000/v1",
      "region": null,
      "api_version": null,
      "owning_org_id": "3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10",
      "provider_connection_id": null,
      "billing_source": "customer_managed",
      "input_nano_usd_per_million": 0,
      "cached_input_nano_usd_per_million": null,
      "cache_write_input_nano_usd_per_million": null,
      "cache_write_1h_input_nano_usd_per_million": null,
      "long_context_cache_write_input_nano_usd_per_million": null,
      "long_context_cache_write_1h_input_nano_usd_per_million": null,
      "output_nano_usd_per_million": 0,
      "reasoning_nano_usd_per_million": null,
      "long_context_threshold_tokens": null,
      "long_context_input_nano_usd_per_million": null,
      "long_context_cached_input_nano_usd_per_million": null,
      "long_context_output_nano_usd_per_million": null,
      "long_context_reasoning_nano_usd_per_million": null,
      "pricing_source": "self-reported",
      "pricing_effective_at": "2026-11-19T15:02:11.104512+00:00",
      "capabilities": {
        "supports_temperature": true,
        "supports_tools": true
      },
      "uptime_30d": null,
      "throughput_tps": null,
      "latency_p50_ms": null,
      "stats_source": null,
      "status": "active",
      "endpoint_credential_last4": "7e1b",
      "created_at": "2026-11-19T15:02:11.104512+00:00",
      "updated_at": "2026-11-19T15:02:11.104512+00:00"
    }
  ],
  "default_waterfall": [
    {
      "id": "9c1a4e72-6d3b-4f85-b2e0-1f7a8c5d3e94",
      "position": 0,
      "model_provider_id": "5d2e9a71-3b4c-4f80-8e16-2a9c7b0d4e53",
      "provider_connection_id": null,
      "target_kind": "deployment",
      "referenced_model_id": null,
      "referenced_model": null,
      "provider": "local",
      "provider_model_id": "my-model",
      "base_url": "https://models.acme.dev:8000/v1",
      "status": "active",
      "rung": "5d2e9a71-3b4c-4f80-8e16-2a9c7b0d4e53",
      "funding": "own_endpoint",
      "health": null
    }
  ],
  "retention": null,
  "huggingface_url": null,
  "release_url": null,
  "benchmarks": [],
  "promotions": [],
  "promotional_listed": false,
  "ads_on_all_requests": false
}

https://api.experientiallabs.ai/api/models