Zum Hauptinhalt springen

Creates a new key

POST/customers/{customerId}/ai-hosting-keys/
v2
POST
ai-hosting-customer-create-key

Creates a new key. Can be linked with a project to directly create web-ui container.

Request

  • customerIdstring
    required

Responses

application/json
  • containerMetaobject
    • containerIdstring
    • errorMessagestring
    • ingressIdstring
    • stackIdstring
    • statusstring (one of: created, requested, failed)
      required
  • customerIdstring
  • isBlockedboolean
    required

    Indicates whether the key is blocked.

  • keystring
    required

    The secret API key which is required for authentication with the AI hosting.

  • keyIdstring
    required

    Auto generated uuid to identify keys in requests.

  • modelsarray of string
    required

    An array of LLM model identifiers enabled for this key.

    • Array[
      • *string
      ]
  • namestring
    required
  • projectIdstring
  • rateLimitobject
    required

    The number of allowed requests per unit. Limits are shared across all keys within the same project.

    • allowedRequestsPerUnitinteger
      required
    • unit"minute"
      required
  • tokenUsageobject
    required
    • planLimitinteger (≥ -1, int64)
      required
    • usedinteger (≥ 0, int64)
      required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"createWebuiContainer":true,"name":"string","projectId":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/customers/string/ai-hosting-keys