Skip to main content
All methods belong to the configured agent client. A ? marks an optional argument or field. Signatures describe types. Examples import the quickstart client. Replace uppercase IDs, file URLs, saved keys, and example revisions before execution. Read the request limits before constructing an AgentRequest. See client configuration for setup and retry behavior.

Responses

responses.answer

Answer a pending clarification or approval. Use the request ID and permitted answers from the current pending input.
Signature
Example:
Guide: responses. Types: AgentAnswer, AgentRequestOptions, AgentResponseView.

responses.cancel

Request server cancellation. Observe the same response to confirm its final state.
Signature
Example:
Guide: responses. Types: AgentRequestOptions, AgentResponseView.

responses.create

Submit a task and return its accepted snapshot. Save the response ID before observing execution.
Signature
Example:
Guide: responses. Types: AgentRequest, AgentRequestOptions, AgentResponseView.

responses.retrieve

Read one response snapshot. This method does not wait for execution to finish.
Signature
Example:
Guide: responses. Types: AgentRequestOptions, AgentResponseView.

responses.selectFinalArtifacts

Save the final artifact selection. Send the current sequence number to detect conflicting writes. Replace the example cursor with the current snapshot sequence.
Signature
Example:
Guide: responses. Types: AgentResourceOptions, AgentResponseView.

responses.stream

Stream complete snapshots of an existing response. Replace displayed state on each update.
Signature
Example:
Guide: responses. Types: AgentStreamOptions, AgentResponseView.

responses.wait

Poll an existing response until it stops or requires input. A timeout only stops local observation.
Signature
Example:
Guide: responses. Types: AgentRunOptions, AgentResponseView.

run

Create a response and poll until execution stops or requires input. This method can incur generation charges.
Signature
Example:
Guide: responses. Types: AgentRequest, AgentRunOptions, AgentResponseView.

stream

Create a response and yield complete snapshots. This method starts new work each time you call it.
Signature
Example:
Guide: responses. Types: AgentRequest, AgentStreamOptions, AgentResponseView.

Conversations

conversations.create

Create an idle conversation. An omitted title or null title leaves the conversation untitled.
Signature
Example:
Guide: resources. Types: AgentResourceOptions, AgentConversation.

conversations.delete

Delete a conversation. Repeat the request when deleted is false, after running work stops.
Signature
Example:
Guide: resources. Types: AgentRequestOptions.

conversations.fork

Copy settled conversation history into a new conversation. Set atMessageId to copy through that message’s completed turn. Active turns are excluded. Project placement completes asynchronously.
Signature
Example:
Guide: resources. Types: AgentResourceOptions, AgentConversation.

conversations.generationSummary

Read billed generation costs and counts. Nano-USD totals exclude unpriced requests and LLM usage.
Signature
Example:
Guide: resources. Types: AgentResourceOptions, AgentGenerationSummary.

conversations.items.list

Read conversation history with cursor pagination. Restart pagination after a snapshot conflict.
Signature
Example:
Guide: resources. Types: AgentPageOptions, AgentPage, AgentConversationItem.

conversations.list

List conversations with cursor pagination. Use next_cursor for the next page.
Signature
Example:
Guide: resources. Types: AgentPageOptions, AgentPage, AgentConversation.

conversations.retrieve

Read a conversation’s title and active response IDs.
Signature
Example:
Guide: resources. Types: AgentRequestOptions, AgentConversation.

conversations.sharing.retrieve

Read the conversation’s share policy, or null if none exists. The policy ID identifies its /chat/share/ link on the fal website. Empty recipient lists allow anyone with the link.
Signature
Example:
Guide: resources. Types: AgentResourceOptions, AgentConversationSharePolicy.

conversations.sharing.update

Create or replace the conversation’s share policy. Specify account IDs or email addresses to restrict access. Empty recipients make the link public. expiresAt accepts an ISO 8601 timestamp; omit it or pass null to remove expiration.
Signature
Example:
Guide: resources. Types: AgentConversationSharingInput, AgentResourceOptions, AgentConversationSharePolicy.

conversations.update

Rename a conversation. Read it after an uncertain acknowledgement before repeating the write.
Signature
Example:
Guide: resources. Types: AgentRequestOptions, AgentConversation.

Plans

plans.retrieve

Read a plan block within its owning conversation.
Signature
Example:
Guide: plans. Types: AgentRequestOptions, AgentPlanBlock.

plans.run

Run a plan at its current revision. Replace the example revision with the value returned by plans.retrieve. Save an idempotency key before submission.
Signature
Example:
Guide: plans. Types: AgentRequestOptions, AgentResponseView.

plans.update

Replace the editable step list at the specified revision. Preserve step IDs to retain existing steps. The example replaces the complete list with one step at revision 3.
Signature
Example:
Guide: plans. Types: AgentPlanUpdate, AgentRequestOptions, AgentPlanBlock.

Artifacts

artifacts.retrieve

Read an artifact. Omit revision for the available current version.
Signature
Example:
Guide: media. Types: AgentRequestOptions, AgentArtifact.

Projects

projects.assets.attach

Attach an existing asset to a project. Use its assetId or library assetRecordId.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.assets.detach

Detach an asset from a project without deleting its source file.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.collections.attach

Attach an existing collection to a project.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.collections.detach

Remove a collection’s project association.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.conversations.add

Add an existing conversation to a project.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.conversations.create

Create an idle conversation within a project.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentConversation.

projects.conversations.list

List visible conversations in a project. This method returns an array without a pagination cursor.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProjectConversation.

projects.conversations.remove

Remove a conversation’s project association. This does not delete the conversation.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.conversations.setMemoryPrivacy

Set excluded to true to exclude the conversation from project memory. The conversation must belong to the project.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.create

Create a project with a name and optional color.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProject.

projects.delete

Delete the project association and project-scoped resources. This does not delete its conversations or source media.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.documents.attach

Attach a fal storage URL and extracted text. Replace the sample file URL, metadata, and text with your uploaded document.
Signature
Example:
Guide: projects. Types: AgentProjectDocumentInput, AgentResourceOptions, AgentProjectDocument.

projects.documents.import

Extract and attach a document already uploaded to supported fal storage. The server downloads at most 25 MiB without following redirects. MIME type can be inferred from the filename. PDF and DOCX text is extracted automatically. Empty documents have no_text status.
Signature
Example:
Guide: projects. Types: AgentProjectDocumentImport, AgentResourceOptions, AgentProjectDocument.

projects.documents.list

List project documents and their processing status.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProjectDocument.

projects.documents.preview

Read a document’s extracted text. Use the document’s assetId.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.documents.remove

Remove the document from the project. Use the document’s assetId.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.documents.retry

Retry document processing. Read its status after submission.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProjectDocument.

projects.documents.upload

Upload a document, extract its text, and attach it to a project. Supports PDF, DOCX, and text files up to 25 MiB. Ingestion continues in the background; poll documents.list for its status. Uploads use fal storage credentials configured on the client. Aborting observation does not undo an uploaded file.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProjectDocument.

projects.list

List project summaries, including counts and cover media.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProjectSummary.

projects.memory.create

Create a memory note. supersededId identifies a note replaced by this operation, when present.
Signature
Example:
Guide: projects. Types: AgentMemoryKind, AgentResourceOptions.

projects.memory.retrieve

Read the project’s primer and active memory notes.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProjectMemory.

projects.memory.update

Edit, pin, delete, or restore a memory note within the project.
Signature
Example:
Guide: projects. Types: AgentResourceOptions.

projects.resources

Read attached media, collections, characters, smart entities, and generated media.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProjectResources.

projects.retrieve

Read project identity, name, color, and creation time.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProject.

projects.update

Change a project’s name, color, or both. Supply at least one field.
Signature
Example:
Guide: projects. Types: AgentResourceOptions, AgentProject.

Models

models.capabilities

Read a generation model’s configurable fields, required flags, and default values.
Signature
Example:
Guide: settings. Types: AgentResourceOptions, AgentModelCapabilities.

models.list

Search generation models. Use page-based pagination, not a history cursor.
Signature
Example:
Guide: settings. Types: AgentResourceOptions, AgentModel.

models.listAgentModels

List available reasoning models. Use these IDs for the defaultModel account preference.
Signature
Example:
Guide: settings. Types: AgentResourceOptions.

Settings

settings.conversations.retrieve

Read generation settings for a conversation.
Signature
Example:
Guide: settings. Types: AgentResourceOptions, AgentGenerationSettings.

settings.conversations.update

Replace conversation settings with the expected revision. Preserve unrelated fields from the latest read.
Signature
Example:
Guide: settings. Types: AgentGenerationSettings, AgentResourceOptions.

settings.defaults.retrieve

Read local, inherited, and effective generation defaults with their sources.
Signature
Example:
Guide: settings. Types: AgentDefaultsTarget, AgentResourceOptions, AgentDefaultsView.

settings.defaults.update

Change or inherit defaults. Send the last local object as expectedLocal to detect conflicting edits.
Signature
Example:
Guide: settings. Types: AgentDefaultsTarget, AgentDefaultsUpdate, AgentResourceOptions, AgentDefaultsView.

settings.projects.retrieve

Read generation settings saved on a project.
Signature
Example:
Guide: settings. Types: AgentResourceOptions, AgentGenerationSettings.

settings.projects.update

Replace project settings with the expected revision. Preserve unrelated fields from the latest read.
Signature
Example:
Guide: settings. Types: AgentGenerationSettings, AgentResourceOptions.

Preferences

preferences.retrieve

Read account preferences, including generation defaults.
Signature
Example:
Guide: settings. Types: AgentResourceOptions, AgentPreferences.

preferences.update

Update fields within one preference section. The section determines the accepted input fields.
Signature
Example:
Guide: settings. Types: AgentPreferences, AgentResourceOptions.

Queue

queue.cancel

Cancel a queued turn by its turn ID.
Signature
Example:
Guide: queue. Types: AgentResourceOptions.

queue.dispatch

Attempt to dispatch eligible queued work. promoted false means this call did not start a turn.
Signature
Example:
Guide: queue. Types: AgentResourceOptions, AgentQueueDispatch.

queue.edit

Replace a queued prompt with 1–10,000 characters. This does not edit a running response.
Signature
Example:
Guide: queue. Types: AgentResourceOptions.

queue.reorder

Reorder queued turns by turn ID. Supply at most 50 IDs. Steps within a plan retain their required order. Retrieve the queue for its effective order.
Signature
Example:
Guide: queue. Types: AgentResourceOptions.

queue.retrieve

Read queued turns and active turn IDs for a conversation.
Signature
Example:
Guide: queue. Types: AgentResourceOptions, AgentQueueItem.

queue.run

Request immediate execution of a queued turn. This can bypass its normal queue position.
Signature
Example:
Guide: queue. Types: AgentResourceOptions, AgentQueueDispatch.

queue.setApproval

Change a continuation’s approval requirement. Removing the requirement can dispatch work immediately.
Signature
Example:
Guide: queue. Types: AgentResourceOptions, AgentQueueDispatch.

queue.setHalted

Pause or resume queue dispatch. Resuming also attempts to dispatch eligible work.
Signature
Example:
Guide: queue. Types: AgentResourceOptions, AgentQueueDispatch.

Runs

runs.answer

Answer a cost approval from the retrieved run. The decision applies to its approval group.
Signature
Example:
Guide: queue. Types: AgentResourceOptions.

runs.cancel

Request cancellation of a generation run. Inspect cancelled and retrieve the run afterward.
Signature
Example:
Guide: queue. Types: AgentResourceOptions.

runs.retrieve

Read a generation run’s operation, artifacts, and pending cost approvals.
Signature
Example:
Guide: queue. Types: AgentResourceOptions, AgentRunView.

runs.retry

Request another generation attempt. This can incur charges and require a new approval.
Signature
Example:
Guide: queue. Types: AgentResourceOptions.

Library

library.assets.assignTag

Assign an existing tag to an asset record.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.assets.delete

Delete a library asset using its assetRecordId.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.assets.list

Search library assets. Follow nextCursor and inspect scopeTruncated before treating the result as complete.
Signature
Example:
Guide: library. Types: AgentLibraryAssetQuery, AgentResourceOptions, AgentLibraryAsset.

library.assets.register

Register a media URL returned by fal storage. Replace the sample URL with your uploaded media URL.
Signature
Example:
Guide: library. Types: AgentLibraryMediaType, AgentResourceOptions, AgentLibraryAsset.

library.assets.removeTag

Remove a tag assignment without deleting the tag or asset.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.assets.retrieve

Read asset metadata using its library assetRecordId.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryAsset.

library.assets.setFavorite

Set an asset’s favorite state using its assetRecordId.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.assets.tags

Read the tags assigned to an asset record.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryTag.

library.assets.updatePrompt

Update an uploaded asset’s prompt with 1–2,000 characters. Generated assets do not support this operation.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryAsset.

library.characters.checkIdentifier

Normalize a proposed character identifier and check availability. Creation can still fail if another request takes it first.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.characters.create

Create a character from a description and one to twenty reference images. References accept fal-hosted URLs or existing asset targets.
Signature
Example:
Guide: library. Types: AgentCharacterInput, AgentResourceOptions, AgentLibraryCollection.

library.characters.references

Read reference image URLs and asset record IDs. Exclude entries with isCover when saving the reference list.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentCharacterReference.

library.characters.update

Replace a character name, description, and complete reference list. Character identifiers cannot be changed.
Signature
Example:
Guide: library. Types: AgentCharacterInput, AgentResourceOptions, AgentLibraryCollection.

library.collections.addAsset

Add an asset to a manual collection or smart entity gallery. Use the assetRecordId. This does not change defining references.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.collections.create

Create a manual collection or a smart collection with filters.
Signature
Example:
Guide: library. Types: AgentCollectionInput, AgentResourceOptions, AgentLibraryCollection.

library.collections.delete

Delete a collection or smart entity through the shared product operation. This does not delete its source assets.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.collections.list

List collections with offset pagination. includeCharacters preserves character inclusion. Set includeSmartEntities to true to include all five entity types.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryCollection.

library.collections.move

Move a collection under a parent. Use null to move it to the root.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryCollection.

library.collections.removeAsset

Remove a manual collection membership or smart entity gallery link. Assets, defining references, and recorded generation usage are preserved.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.collections.setFavorite

Set a collection or smart entity’s favorite state.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryCollection.

library.collections.update

Update collection metadata or filters. Use null to clear nullable fields.
Signature
Example:
Guide: library. Types: AgentCollectionFilter, AgentResourceOptions, AgentLibraryCollection.

library.entities.addAsset

Link an existing asset to an entity gallery. This does not change its defining reference images.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.entities.checkHandle

Normalize a handle and check availability across all five types. Set excludeId when editing. Availability does not reserve the handle.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.entities.create

Create any smart entity type with one to twenty defining references. Characters require a description and reject custom metadata.
Signature
Example:
Guide: library. Types: AgentLibraryEntityInput, AgentResourceOptions, AgentLibraryEntity.

library.entities.delete

Delete any smart entity type through the shared product operation. Source assets are preserved.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.entities.list

List smart entities with offset pagination. Filter by types or search names and handles. Omit types to include all five entity types.
Signature
Example:
Guide: library. Types: AgentLibraryEntityQuery, AgentResourceOptions, AgentLibraryEntity.

library.entities.listAssets

Read associated media with offset pagination. Set includeReferences to include images whose only association is defining reference membership.
Signature
Example:
Guide: library. Types: AgentLibraryMediaType, AgentResourceOptions, AgentLibraryAsset.

library.entities.removeAsset

Remove a manual gallery link without deleting the asset. Recorded generation usage and defining reference images are preserved.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.entities.resolve

Resolve one to 100 handles within the account. Unknown handles are omitted. Use types to restrict the matching entity types.
Signature
Example:
Guide: library. Types: AgentLibraryEntityType, AgentResourceOptions, AgentLibraryEntity.

library.entities.retrieve

Read an entity and its defining reference-image URLs. The references exclude its associated-media gallery.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryEntity.

library.entities.setFavorite

Set the favorite state for any smart entity type.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryEntity.

library.entities.update

Update entity fields. Supplied references replace the complete defining set. Types and character handles cannot change. Character metadata is managed automatically.
Signature
Example:
Guide: library. Types: AgentLibraryEntityUpdate, AgentResourceOptions, AgentLibraryEntity.

library.tags.create

Create a tag. Names are trimmed and stored in lowercase.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryTag.

library.tags.delete

Delete a tag and its asset assignments. This does not delete assets.
Signature
Example:
Guide: library. Types: AgentResourceOptions.

library.tags.list

List available asset tags. System tags are excluded.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryTag.

library.tags.update

Change a tag name or color. Tag names must be unique within the account.
Signature
Example:
Guide: library. Types: AgentResourceOptions, AgentLibraryTag.

Skills

skills.checkForUpdates

Check an imported skill against its repository default branch. Custom and detached skills cannot check for updates.
Signature
Example:
Guide: skills. Types: AgentResourceOptions.

skills.create

Create a custom skill. Names use lowercase letters, digits, and hyphens. presetClash reports a matching fal skill.
Signature
Example:
Guide: skills. Types: AgentSkillContent, AgentResourceOptions, AgentInstalledSkill.

skills.importFromGithub

Import a skill from a public GitHub repository. Script-based skills are unsupported.
Signature
Example:
Guide: skills. Types: AgentSkillSource, AgentResourceOptions, AgentInstalledSkill.

skills.list

List fal skills and your installed skills. Disabled and shadowed flags explain which skills are available.
Signature
Example:
Guide: skills. Types: AgentResourceOptions, AgentSkill.

skills.previewImport

Inspect a public GitHub skill before importing it. Check scripts and name conflicts before continuing.
Signature
Example:
Guide: skills. Types: AgentSkillSource, AgentResourceOptions, AgentSkillImportPreview.

skills.retrieve

Read a visible fal or installed skill by ID.
Signature
Example:
Guide: skills. Types: AgentResourceOptions, AgentSkill.

skills.save

Replace custom skill content. Saving an imported skill detaches its GitHub source and disables source updates.
Signature
Example:
Guide: skills. Types: AgentSkillContent, AgentResourceOptions, AgentInstalledSkill.

skills.setEnabled

Enable or disable one skill. Pass its origin and ID from skills.list. The account-level skills switch still applies.
Signature
Example:
Guide: skills. Types: AgentResourceOptions.

skills.uninstall

Remove an installed user skill and its disabled preference entry. Fal skills cannot be uninstalled.
Signature
Example:
Guide: skills. Types: AgentResourceOptions.

skills.update

Update an imported skill from its repository default branch. Replaces its body, references, assets, and source commit.
Signature
Example:
Guide: skills. Types: AgentResourceOptions, AgentInstalledSkill.