{
  "aboutHtml": "<p>Converts text into vectors in asynchronous batch jobs. Submit the batch once. Keep its returned id and read that job with the same API key. Completed jobs return the vectors inline.</p>",
  "aboutText": "Converts text into vectors in asynchronous batch jobs. Submit the batch once. Keep its returned id and read that job with the same API key. Completed jobs return the vectors inline.",
  "locale": "en",
  "methods": [
    {
      "html": "<section class=\"meth\" data-route=\"Ultra\"><header><b><span class=\"alias\">Ultra</span> Batch</b><code>POST /v1/batches</code></header><dl class=\"method-capabilities\" data-model-capabilities><div><dt>Input types</dt><dd><code>text</code></dd></div><div><dt>Output types</dt><dd><code>embedding</code></dd></div><div><dt>Context</dt><dd>Not specified in the catalogue</dd></div><div><dt>Max. output</dt><dd>Not specified in the catalogue</dd></div></dl><dl><div><dt>Input</dt><dd>$0.00015 <em>/ 1K</em></dd></div><div><dt>Output</dt><dd>$0.00 <em>/ 1K</em></dd></div></dl><details class=\"note-s\" data-method-contract><summary>Method parameters and lifecycle</summary><div class=\"tw\" data-card-table=\"contract\"><table><thead><tr><th>Parameter</th><th>Contract</th></tr></thead><tbody><tr><th data-cell-label=\"Parameter\" scope=\"row\"><span class=\"card-cell-label\">Parameter</span><code>endpoint</code></th><td data-cell-label=\"Contract\"><span class=\"card-cell-label\">Contract</span>/v1/embeddings</td></tr><tr><th data-cell-label=\"Parameter\" scope=\"row\"><span class=\"card-cell-label\">Parameter</span><code>model</code></th><td data-cell-label=\"Contract\"><span class=\"card-cell-label\">Contract</span>google/gemini-embedding-001:batch</td></tr><tr><th data-cell-label=\"Parameter\" scope=\"row\"><span class=\"card-cell-label\">Parameter</span><code>requests</code></th><td data-cell-label=\"Contract\"><span class=\"card-cell-label\">Contract</span>custom_id + body.input</td></tr></tbody></table></div><p>Lifecycle: <code>asynchronous</code></p><p class=\"note-s\"><code>GET /v1/batches/{request_id}</code> · response.id</p><p class=\"note-s\">Submit the batch once. Keep its returned id and read that job with the same API key. Completed jobs return the vectors inline.</p></details><p class=\"note-s\">Submit the batch once. Keep its returned id and read that job with the same API key. Completed jobs return the vectors inline.</p></section>",
      "method_identity": {
        "effective_request_model_id": "google/gemini-embedding-001:batch",
        "fmt": "batches",
        "http": "POST",
        "path": "/v1/batches",
        "request_model_id": "google/gemini-embedding-001:batch",
        "route_label": "Ultra"
      },
      "method_key": "Ultra|batches|/v1/batches|google%2Fgemini-embedding-001%3Abatch",
      "ordinal": 0,
      "rawMethod": {
        "contract": {
          "data": {
            "example_body": {
              "endpoint": "/v1/embeddings",
              "model": "google/gemini-embedding-001:batch",
              "requests": [
                {
                  "body": {
                    "input": "First document"
                  },
                  "custom_id": "text-1"
                }
              ]
            },
            "outputs": {
              "family": "embedding",
              "fields": [
                {
                  "name": "id",
                  "type": "string"
                },
                {
                  "name": "status",
                  "type": "string"
                },
                {
                  "name": "results[].custom_id",
                  "type": "string"
                },
                {
                  "name": "results[].response.body.data[].embedding",
                  "type": "number[]"
                },
                {
                  "name": "results[].error",
                  "type": "object|null"
                }
              ],
              "format": "JSON",
              "vector_dimensions": 3072
            },
            "parameters": [
              {
                "enum": [
                  "google/gemini-embedding-001:batch"
                ],
                "name": "model",
                "required": true,
                "type": "string"
              },
              {
                "enum": [
                  "/v1/embeddings"
                ],
                "name": "endpoint",
                "required": true,
                "type": "string"
              },
              {
                "min_items": 1,
                "name": "requests",
                "required": true,
                "type": "batch_item[]"
              },
              {
                "name": "requests[].custom_id",
                "required": true,
                "type": "string",
                "unique_within_batch": true
              },
              {
                "name": "requests[].body.input",
                "required": true,
                "type": "string"
              }
            ]
          },
          "hints": [
            "Submit the batch once. Keep its returned id and read that job with the same API key. Completed jobs return the vectors inline."
          ],
          "input": {
            "endpoint": "/v1/embeddings",
            "model": "google/gemini-embedding-001:batch",
            "requests": "custom_id + body.input"
          },
          "lifecycle": {
            "create": {
              "accepted_status": 202,
              "http": "POST",
              "path": "/v1/batches"
            },
            "mode": "asynchronous",
            "status": {
              "http": "GET",
              "id_source": "response.id",
              "path": "/v1/batches/{request_id}"
            }
          },
          "method": {
            "http": "POST",
            "path": "/v1/batches"
          },
          "output": {
            "family": "embedding",
            "fields": [
              {
                "name": "id",
                "type": "string"
              },
              {
                "name": "status",
                "type": "string"
              },
              {
                "name": "results[].custom_id",
                "type": "string"
              },
              {
                "name": "results[].response.body.data[].embedding",
                "type": "number[]"
              },
              {
                "name": "results[].error",
                "type": "object|null"
              }
            ],
            "format": "JSON",
            "vector_dimensions": 3072
          }
        },
        "ctx": null,
        "examples": [
          {
            "code": "curl --silent --show-error https://api.ailoot.ai/v1/batches \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-Ailoot-Routing-Mode: ultra\" \\\n  --data '{\"model\":\"google/gemini-embedding-001:batch\",\"endpoint\":\"/v1/embeddings\",\"requests\":[{\"custom_id\":\"text-1\",\"body\":{\"input\":\"First document\"}}]}'",
            "label": "curl · POST /v1/batches",
            "language": "bash"
          },
          {
            "code": "curl --silent --show-error \"https://api.ailoot.ai/v1/batches/$BATCH_ID\" \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" \\\n  -H \"X-Ailoot-Routing-Mode: ultra\"",
            "label": "curl · GET /v1/batches/{request_id}",
            "language": "bash"
          }
        ],
        "family": "batch",
        "fmt": "batches",
        "hints": [
          "Submit the batch once. Keep its returned id and read that job with the same API key. Completed jobs return the vectors inline."
        ],
        "http": "POST",
        "img_in": null,
        "img_out": null,
        "in": 0.15,
        "input": [
          "text"
        ],
        "label": "Batch",
        "max_out": null,
        "native_endpoint": "batches",
        "out": 0,
        "output": [
          "embedding"
        ],
        "path": "/v1/batches",
        "pricing": {
          "billing_mode": "token",
          "cache_write_1h_usd_per_token": null,
          "cache_write_5m_usd_per_token": null,
          "currency": "USD",
          "input_usd_per_token": 1.5e-07,
          "output_usd_per_token": 0,
          "price_policy": "native_accepted_retail_card",
          "provenance": "native_group_model_pricing",
          "status": "configured",
          "tiers": [
            {
              "cache_write_1h_usd_per_token": null,
              "cache_write_5m_usd_per_token": null,
              "input_usd_per_token": 1.5e-07,
              "interval_boundary": "min_exclusive_max_inclusive",
              "label": "",
              "min_tokens": 0,
              "null_rate_policy": "inherit_base_rate",
              "output_usd_per_token": 0
            }
          ]
        },
        "request_model_id": "google/gemini-embedding-001:batch",
        "route_label": "Ultra",
        "route_tier": "ultra",
        "status_reads": [
          "GET /v1/batches/{request_id}"
        ],
        "tiers": [],
        "unit": "token",
        "units": []
      }
    }
  ],
  "model_id": "google/gemini-embedding-001:batch",
  "page": {
    "canonical": "https://ailoot.ai/models/en/google-gemini-embedding-001-u003a-batch/",
    "description": "Converts text into vectors in asynchronous batch jobs.",
    "locale": "en",
    "md_url": "https://ailoot.ai/models/en/google-gemini-embedding-001-u003a-batch/index.md",
    "title": "Gemini Embedding 001 Batch",
    "url": "https://ailoot.ai/models/en/google-gemini-embedding-001-u003a-batch/"
  },
  "rawModel": {
    "about": "Converts text into vectors in asynchronous batch jobs. Submit the batch once. Keep its returned id and read that job with the same API key. Completed jobs return the vectors inline.",
    "alias_of": null,
    "aliases": [],
    "author": "Google",
    "available": true,
    "canonical_model": "google/gemini-embedding-001:batch",
    "card_routes": [
      {
        "label": "Ultra",
        "rates": [
          {
            "amount": 0.15,
            "amount_unit": "usd_per_million_tokens",
            "key": "in",
            "label": "Input",
            "side": "in"
          }
        ]
      }
    ],
    "ctx": null,
    "formats": [
      "batches"
    ],
    "id": "google/gemini-embedding-001:batch",
    "input": [
      "text"
    ],
    "kind": "embedding",
    "max_out": null,
    "methods": [
      {
        "contract": {
          "data": {
            "example_body": {
              "endpoint": "/v1/embeddings",
              "model": "google/gemini-embedding-001:batch",
              "requests": [
                {
                  "body": {
                    "input": "First document"
                  },
                  "custom_id": "text-1"
                }
              ]
            },
            "outputs": {
              "family": "embedding",
              "fields": [
                {
                  "name": "id",
                  "type": "string"
                },
                {
                  "name": "status",
                  "type": "string"
                },
                {
                  "name": "results[].custom_id",
                  "type": "string"
                },
                {
                  "name": "results[].response.body.data[].embedding",
                  "type": "number[]"
                },
                {
                  "name": "results[].error",
                  "type": "object|null"
                }
              ],
              "format": "JSON",
              "vector_dimensions": 3072
            },
            "parameters": [
              {
                "enum": [
                  "google/gemini-embedding-001:batch"
                ],
                "name": "model",
                "required": true,
                "type": "string"
              },
              {
                "enum": [
                  "/v1/embeddings"
                ],
                "name": "endpoint",
                "required": true,
                "type": "string"
              },
              {
                "min_items": 1,
                "name": "requests",
                "required": true,
                "type": "batch_item[]"
              },
              {
                "name": "requests[].custom_id",
                "required": true,
                "type": "string",
                "unique_within_batch": true
              },
              {
                "name": "requests[].body.input",
                "required": true,
                "type": "string"
              }
            ]
          },
          "hints": [
            "Submit the batch once. Keep its returned id and read that job with the same API key. Completed jobs return the vectors inline."
          ],
          "input": {
            "endpoint": "/v1/embeddings",
            "model": "google/gemini-embedding-001:batch",
            "requests": "custom_id + body.input"
          },
          "lifecycle": {
            "create": {
              "accepted_status": 202,
              "http": "POST",
              "path": "/v1/batches"
            },
            "mode": "asynchronous",
            "status": {
              "http": "GET",
              "id_source": "response.id",
              "path": "/v1/batches/{request_id}"
            }
          },
          "method": {
            "http": "POST",
            "path": "/v1/batches"
          },
          "output": {
            "family": "embedding",
            "fields": [
              {
                "name": "id",
                "type": "string"
              },
              {
                "name": "status",
                "type": "string"
              },
              {
                "name": "results[].custom_id",
                "type": "string"
              },
              {
                "name": "results[].response.body.data[].embedding",
                "type": "number[]"
              },
              {
                "name": "results[].error",
                "type": "object|null"
              }
            ],
            "format": "JSON",
            "vector_dimensions": 3072
          }
        },
        "ctx": null,
        "examples": [
          {
            "code": "curl --silent --show-error https://api.ailoot.ai/v1/batches \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-Ailoot-Routing-Mode: ultra\" \\\n  --data '{\"model\":\"google/gemini-embedding-001:batch\",\"endpoint\":\"/v1/embeddings\",\"requests\":[{\"custom_id\":\"text-1\",\"body\":{\"input\":\"First document\"}}]}'",
            "label": "curl · POST /v1/batches",
            "language": "bash"
          },
          {
            "code": "curl --silent --show-error \"https://api.ailoot.ai/v1/batches/$BATCH_ID\" \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" \\\n  -H \"X-Ailoot-Routing-Mode: ultra\"",
            "label": "curl · GET /v1/batches/{request_id}",
            "language": "bash"
          }
        ],
        "family": "batch",
        "fmt": "batches",
        "hints": [
          "Submit the batch once. Keep its returned id and read that job with the same API key. Completed jobs return the vectors inline."
        ],
        "http": "POST",
        "img_in": null,
        "img_out": null,
        "in": 0.15,
        "input": [
          "text"
        ],
        "label": "Batch",
        "max_out": null,
        "native_endpoint": "batches",
        "out": 0,
        "output": [
          "embedding"
        ],
        "path": "/v1/batches",
        "pricing": {
          "billing_mode": "token",
          "cache_write_1h_usd_per_token": null,
          "cache_write_5m_usd_per_token": null,
          "currency": "USD",
          "input_usd_per_token": 1.5e-07,
          "output_usd_per_token": 0,
          "price_policy": "native_accepted_retail_card",
          "provenance": "native_group_model_pricing",
          "status": "configured",
          "tiers": [
            {
              "cache_write_1h_usd_per_token": null,
              "cache_write_5m_usd_per_token": null,
              "input_usd_per_token": 1.5e-07,
              "interval_boundary": "min_exclusive_max_inclusive",
              "label": "",
              "min_tokens": 0,
              "null_rate_policy": "inherit_base_rate",
              "output_usd_per_token": 0
            }
          ]
        },
        "request_model_id": "google/gemini-embedding-001:batch",
        "route_label": "Ultra",
        "route_tier": "ultra",
        "status_reads": [
          "GET /v1/batches/{request_id}"
        ],
        "tiers": [],
        "unit": "token",
        "units": []
      }
    ],
    "model_aliases": [],
    "name": "Gemini Embedding 001 Batch",
    "price": {
      "in": 0.15,
      "in_label": null,
      "out": 0,
      "out_label": null,
      "sort_in": 0.15,
      "sort_out": 0,
      "varies": false
    },
    "public_id": "google/gemini-embedding-001:batch",
    "short": "Converts text into vectors in asynchronous batch jobs."
  },
  "renderer_schema": {
    "method_order": "rawModel.methods-ordinal",
    "prices": "exact-native-DTO-units-and-selected-renderer-html"
  },
  "representation": "exact-public-dto-and-native-renderer-html",
  "schema": "ailoot-static-model-facts-v1",
  "schema_version": 1,
  "shortText": "Converts text into vectors in asynchronous batch jobs.",
  "source": {
    "audit_sha256": "418520358581a666d34f98fdfb86f261dbf0f670666c1d2114b42536a558c08c",
    "bridge_map_sha256": "418520358581a666d34f98fdfb86f261dbf0f670666c1d2114b42536a558c08c",
    "projection_audit": {
      "parent_manifest_sha256": "2f9ced64460dea37147df4027f3344b0c11b8ff07160017c38be76223b2f1b6b",
      "raw_model_json_sha256": "41705548dcf70aeeabe786f7af9277afbfe6e99feb04c303d8b2e1f993750725",
      "renderer_sha256": "6612a44dd00ea474c44a2e70efd014a348a737a19990880fd2239925e082b183"
    },
    "projection_kind": "catalogue-refresh-native-dto-v1",
    "raw_model_json_sha256": "41705548dcf70aeeabe786f7af9277afbfe6e99feb04c303d8b2e1f993750725",
    "renderer_sha256": "6612a44dd00ea474c44a2e70efd014a348a737a19990880fd2239925e082b183"
  },
  "sourceRevision": "47e2be9b28eb77766cc9deb034d23c90ac55920f6f11542ad132b6daa9a24c75"
}
