pydo.genai.create_model_api_key()

Generated on 3 Aug 2026 from pydo version v0.40.0

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.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.