[ Web Proxy ]
URL:
Viewing: https://docs.digitalocean.com/reference/pydo/reference/genai/create_model_api_key/ [Back]  [Original]

pydo.genai.create_model_api_key() | DigitalOcean Documentation

For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).

pydo.genai.create_model_api_key()

Generated on 3 Aug 2026 from pydo version v0.40.0

Copy page as Markdown View page as Markdown

deprecated

Usage

client.genai.create_model_api_key(
    body={
        "name": "Production Key",
    },
)
Returns JSONRaises HttpResponseError

Description

Note: This endpoint is deprecated and has been retired. All requests return a 410 gone response.

Creating model API keys through this endpoint is no longer supported. To create a model access key, visit the manage page in the control panel.

Previously, you could create a model API key by sending a POST request to /v2/gen-ai/models/api_keys.

Parameters

name string optional

Example: Production Key

A human friendly name to identify the key

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "name": "Production Key"
}

resp = client.genai.create_model_api_key(body=req)

More Information

See /v2/gen-ai/models/api_keys in the API reference for additional detail on responses, headers, parameters, and more.

In this article...


We can't find any results for your search.

Try using different keywords or simplifying your search terms.


Web Proxy Viewer  |  New URL  |  Original Page