Tuti APIProject

Get the AI models

Get the model each AI role uses (Autopilot has three), and each group of roles' level.

GET/ai-models

Authorization Bearer token

Responses

  • 200Each AI role's model and each group's level

    application/json · object

    Each AI role's model and each group's level

    • answersAiRoleModelrequired

      Answers to readers' questions in the help center and the widget

      Show 3 properties
      • modelstring · nullablerequired

        The model the project picked (off: skipped), or null for the server's default

      • defaultstringrequired

        The server's default model for the role

      • usedstringrequired

        The model its work runs on now

    • escalationsAiRoleModelrequired

      Passing a question the help center couldn't answer to the team

      Show 3 properties
      • modelstring · nullablerequired

        The model the project picked (off: skipped), or null for the server's default

      • defaultstringrequired

        The server's default model for the role

      • usedstringrequired

        The model its work runs on now

    • support_draftAiRoleModelrequired

      The Inbox's drafted replies

      Show 3 properties
      • modelstring · nullablerequired

        The model the project picked (off: skipped), or null for the server's default

      • defaultstringrequired

        The server's default model for the role

      • usedstringrequired

        The model its work runs on now

    • support_summaryAiRoleModelrequired

      The Inbox's summaries of a conversation

      Show 3 properties
      • modelstring · nullablerequired

        The model the project picked (off: skipped), or null for the server's default

      • defaultstringrequired

        The server's default model for the role

      • usedstringrequired

        The model its work runs on now

    • changelogAiRoleModelrequired

      Drafting and rewriting changelog entries

      Show 3 properties
      • modelstring · nullablerequired

        The model the project picked (off: skipped), or null for the server's default

      • defaultstringrequired

        The server's default model for the role

      • usedstringrequired

        The model its work runs on now

    • code_changes_decideAiRoleModelrequired

      Autopilot deciding what a code change means for the docs, changelog and posts

      Show 3 properties
      • modelstring · nullablerequired

        The model the project picked (off: skipped), or null for the server's default

      • defaultstringrequired

        The server's default model for the role

      • usedstringrequired

        The model its work runs on now

    • code_changes_checkAiRoleModelrequired

      Autopilot checking its own work (off skips the checks)

      Show 3 properties
      • modelstring · nullablerequired

        The model the project picked (off: skipped), or null for the server's default

      • defaultstringrequired

        The server's default model for the role

      • usedstringrequired

        The model its work runs on now

    • code_changesAiRoleModelrequired

      Autopilot writing, and Verify

      Show 3 properties
      • modelstring · nullablerequired

        The model the project picked (off: skipped), or null for the server's default

      • defaultstringrequired

        The server's default model for the role

      • usedstringrequired

        The model its work runs on now

    • levelsobjectrequired

      Each group's level (answers, support, changelog, code_changes), which its roles run on

      Show 4 properties
      • answersAiGroupLevelrequired

        A group of roles' level

        Show 3 properties
        • levelstringrequired

          The level saved

          One of"affordable""balanced""best""custom"

        • usedstringrequired

          The level its work runs on: balanced when the plan doesn't include the saved one or the server no longer offers it

          One of"affordable""balanced""best""custom"

        • availablearray of stringrequired

          The levels this plan may pick on this server

          Each item one of"affordable""balanced""best""custom"

      • supportAiGroupLevelrequired

        A group of roles' level

        Show 3 properties
        • levelstringrequired

          The level saved

          One of"affordable""balanced""best""custom"

        • usedstringrequired

          The level its work runs on: balanced when the plan doesn't include the saved one or the server no longer offers it

          One of"affordable""balanced""best""custom"

        • availablearray of stringrequired

          The levels this plan may pick on this server

          Each item one of"affordable""balanced""best""custom"

      • changelogAiGroupLevelrequired

        A group of roles' level

        Show 3 properties
        • levelstringrequired

          The level saved

          One of"affordable""balanced""best""custom"

        • usedstringrequired

          The level its work runs on: balanced when the plan doesn't include the saved one or the server no longer offers it

          One of"affordable""balanced""best""custom"

        • availablearray of stringrequired

          The levels this plan may pick on this server

          Each item one of"affordable""balanced""best""custom"

      • code_changesAiGroupLevelrequired

        A group of roles' level

        Show 3 properties
        • levelstringrequired

          The level saved

          One of"affordable""balanced""best""custom"

        • usedstringrequired

          The level its work runs on: balanced when the plan doesn't include the saved one or the server no longer offers it

          One of"affordable""balanced""best""custom"

        • availablearray of stringrequired

          The levels this plan may pick on this server

          Each item one of"affordable""balanced""best""custom"

  • 401No API key was sent, or it isn't valid: it was revoked, or whoever created it left the team.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 403It isn't allowed: the key is read-only, its creator isn't a project owner or admin where only they may, only a person can do it in the app, a setting is off, or someone's address isn't confirmed. The code says which.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 429Too many requests: past 600 a minute per key, try again after the seconds in the Retry-After header. Some operations have limits of their own (their description gives them), whose 429 has no Retry-After.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 500Something went wrong on Tuti's side. Try again in a moment.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

curl 'https://tuti.so/api/v1/ai-models' \
  --header 'Authorization: Bearer YOUR_API_KEY'
const response = await fetch("https://tuti.so/api/v1/ai-models", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY"
  },
});
const text = await response.text();
import requests

response = requests.get(
    "https://tuti.so/api/v1/ai-models",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "answers": {
    "model": null,
    "default": "anthropic/claude-sonnet-5.5",
    "used": "anthropic/claude-sonnet-5.5"
  },
  "escalations": {
    "model": null,
    "default": "anthropic/claude-sonnet-5.5",
    "used": "anthropic/claude-sonnet-5.5"
  },
  "support_draft": {
    "model": null,
    "default": "anthropic/claude-sonnet-5.5",
    "used": "anthropic/claude-sonnet-5.5"
  },
  "support_summary": {
    "model": null,
    "default": "anthropic/claude-sonnet-5.5",
    "used": "anthropic/claude-sonnet-5.5"
  },
  "changelog": {
    "model": null,
    "default": "anthropic/claude-sonnet-5.5",
    "used": "anthropic/claude-sonnet-5.5"
  },
  "code_changes_decide": {
    "model": null,
    "default": "anthropic/claude-sonnet-5.5",
    "used": "anthropic/claude-sonnet-5.5"
  },
  "code_changes_check": {
    "model": null,
    "default": "anthropic/claude-sonnet-5.5",
    "used": "anthropic/claude-sonnet-5.5"
  },
  "code_changes": {
    "model": null,
    "default": "anthropic/claude-sonnet-5.5",
    "used": "anthropic/claude-sonnet-5.5"
  },
  "levels": {
    "answers": {
      "level": "balanced",
      "used": "balanced",
      "available": [
        "affordable",
        "balanced",
        "best"
      ]
    },
    "support": {
      "level": "balanced",
      "used": "balanced",
      "available": [
        "affordable",
        "balanced",
        "best"
      ]
    },
    "changelog": {
      "level": "balanced",
      "used": "balanced",
      "available": [
        "affordable",
        "balanced",
        "best"
      ]
    },
    "code_changes": {
      "level": "balanced",
      "used": "balanced",
      "available": [
        "affordable",
        "balanced",
        "best"
      ]
    }
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "This API key isn't valid or was revoked"
  }
}
{
  "error": {
    "code": "forbidden",
    "message": "This key can only read. Create a read + write key to change things."
  }
}
{
  "error": {
    "code": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}