Fireworks AI configuration#

Cartography reads a Fireworks AI account through the Fireworks AI REST API with an API key and the account ID.

Authentication#

Fireworks AI API keys belong to a user or a service account, and a key can do whatever its owner’s role allows. Have a Fireworks account admin create a dedicated service account with the inference-user role and issue its API key:

firectl user create --user-id cartography --service-account --role inference-user
firectl api-key create --service-account cartography

Find the account ID in the Fireworks AI console or with firectl account list. Developer accounts derive the ID from the sign-up email address. Enterprise accounts can choose their own.

Required permissions#

Any role can read the account, its users and service accounts, models, deployments, datasets, and policy settings.

Resource

Endpoint

Role that can read it

Account

GET /v1/accounts/{account_id}

Any role

Policy settings

GET /v1/accounts/{account_id}/policySettings

Any role

Users and service accounts

GET /v1/accounts/{account_id}/users

Any role

Models

GET /v1/accounts/{account_id}/models

Any role

Deployments

GET /v1/accounts/{account_id}/deployments

Any role

Datasets

GET /v1/accounts/{account_id}/datasets

Any role

Optional permissions#

The Cartography service account needs the admin role only if you want to inventory API keys for every user. If the key lacks access, Cartography logs a warning and keeps the previous API key inventory and ownership links. Stale owners with retained keys stay in the graph until a complete key sync.

Resource

Endpoint

Requirement

API keys for every user

GET /v1/accounts/{account_id}/users/-/apiKeys

The key’s owner must have the admin role.

SSO identity provider ingestion is deferred because Fireworks AI does not allow ListIdentityProviders with API keys; it requires sign-in through firectl or the Fireworks console. This module does not query that endpoint.

The Fireworks AI secrets API is deprecated and is not queried by this module.

Fireworks AI API keys have no read-only scope, so an admin key can also change the account. Store it as you would any other admin credential.

Configure Cartography#

Option

Description

--fireworks-apikey-env-var

Name of the environment variable that holds the Fireworks AI API key.

--fireworks-account-id

Fireworks AI account ID to sync, such as my-account.

Cartography skips the module unless both options are set.

Run Cartography#

export FIREWORKS_API_KEY='<api-key>'
cartography \
  --selected-modules fireworks \
  --fireworks-apikey-env-var FIREWORKS_API_KEY \
  --fireworks-account-id '<account-id>'

References#