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
responses.cancel
Request server cancellation. Observe the same response to confirm its final state.Signature
responses.create
Submit a task and return its accepted snapshot. Save the response ID before observing execution.Signature
responses.retrieve
Read one response snapshot. This method does not wait for execution to finish.Signature
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
responses.stream
Stream complete snapshots of an existing response. Replace displayed state on each update.Signature
responses.wait
Poll an existing response until it stops or requires input. A timeout only stops local observation.Signature
run
Create a response and poll until execution stops or requires input. This method can incur generation charges.Signature
stream
Create a response and yield complete snapshots. This method starts new work each time you call it.Signature
Conversations
conversations.create
Create an idle conversation. An omitted title or null title leaves the conversation untitled.Signature
conversations.delete
Delete a conversation. Repeat the request when deleted is false, after running work stops.Signature
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
conversations.generationSummary
Read billed generation costs and counts. Nano-USD totals exclude unpriced requests and LLM usage.Signature
conversations.items.list
Read conversation history with cursor pagination. Restart pagination after a snapshot conflict.Signature
conversations.list
List conversations with cursor pagination. Use next_cursor for the next page.Signature
conversations.retrieve
Read a conversation’s title and active response IDs.Signature
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
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
conversations.update
Rename a conversation. Read it after an uncertain acknowledgement before repeating the write.Signature
Plans
plans.retrieve
Read a plan block within its owning conversation.Signature
plans.run
Run a plan at its current revision. Replace the example revision with the value returned byplans.retrieve. Save an idempotency key before submission.
Signature
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
Artifacts
artifacts.retrieve
Read an artifact. Omit revision for the available current version.Signature
Projects
projects.assets.attach
Attach an existing asset to a project. Use its assetId or library assetRecordId.Signature
projects.assets.detach
Detach an asset from a project without deleting its source file.Signature
projects.collections.attach
Attach an existing collection to a project.Signature
projects.collections.detach
Remove a collection’s project association.Signature
projects.conversations.add
Add an existing conversation to a project.Signature
projects.conversations.create
Create an idle conversation within a project.Signature
projects.conversations.list
List visible conversations in a project. This method returns an array without a pagination cursor.Signature
projects.conversations.remove
Remove a conversation’s project association. This does not delete the conversation.Signature
projects.conversations.setMemoryPrivacy
Set excluded to true to exclude the conversation from project memory. The conversation must belong to the project.Signature
projects.create
Create a project with a name and optional color.Signature
projects.delete
Delete the project association and project-scoped resources. This does not delete its conversations or source media.Signature
projects.documents.attach
Attach a fal storage URL and extracted text. Replace the sample file URL, metadata, and text with your uploaded document.Signature
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
projects.documents.list
List project documents and their processing status.Signature
projects.documents.preview
Read a document’s extracted text. Use the document’s assetId.Signature
projects.documents.remove
Remove the document from the project. Use the document’s assetId.Signature
projects.documents.retry
Retry document processing. Read its status after submission.Signature
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
projects.list
List project summaries, including counts and cover media.Signature
projects.memory.create
Create a memory note. supersededId identifies a note replaced by this operation, when present.Signature
projects.memory.retrieve
Read the project’s primer and active memory notes.Signature
projects.memory.update
Edit, pin, delete, or restore a memory note within the project.Signature
projects.resources
Read attached media, collections, characters, smart entities, and generated media.Signature
projects.retrieve
Read project identity, name, color, and creation time.Signature
projects.update
Change a project’s name, color, or both. Supply at least one field.Signature
Models
models.capabilities
Read a generation model’s configurable fields, required flags, and default values.Signature
models.list
Search generation models. Use page-based pagination, not a history cursor.Signature
models.listAgentModels
List available reasoning models. Use these IDs for the defaultModel account preference.Signature
Settings
settings.conversations.retrieve
Read generation settings for a conversation.Signature
settings.conversations.update
Replace conversation settings with the expected revision. Preserve unrelated fields from the latest read.Signature
settings.defaults.retrieve
Read local, inherited, and effective generation defaults with their sources.Signature
settings.defaults.update
Change or inherit defaults. Send the last local object as expectedLocal to detect conflicting edits.Signature
settings.projects.retrieve
Read generation settings saved on a project.Signature
settings.projects.update
Replace project settings with the expected revision. Preserve unrelated fields from the latest read.Signature
Preferences
preferences.retrieve
Read account preferences, including generation defaults.Signature
preferences.update
Update fields within one preference section. The section determines the accepted input fields.Signature
Queue
queue.cancel
Cancel a queued turn by its turn ID.Signature
queue.dispatch
Attempt to dispatch eligible queued work. promoted false means this call did not start a turn.Signature
queue.edit
Replace a queued prompt with 1–10,000 characters. This does not edit a running response.Signature
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
queue.retrieve
Read queued turns and active turn IDs for a conversation.Signature
queue.run
Request immediate execution of a queued turn. This can bypass its normal queue position.Signature
queue.setApproval
Change a continuation’s approval requirement. Removing the requirement can dispatch work immediately.Signature
queue.setHalted
Pause or resume queue dispatch. Resuming also attempts to dispatch eligible work.Signature
Runs
runs.answer
Answer a cost approval from the retrieved run. The decision applies to its approval group.Signature
runs.cancel
Request cancellation of a generation run. Inspect cancelled and retrieve the run afterward.Signature
runs.retrieve
Read a generation run’s operation, artifacts, and pending cost approvals.Signature
runs.retry
Request another generation attempt. This can incur charges and require a new approval.Signature
Library
library.assets.assignTag
Assign an existing tag to an asset record.Signature
library.assets.delete
Delete a library asset using its assetRecordId.Signature
library.assets.list
Search library assets. Follow nextCursor and inspect scopeTruncated before treating the result as complete.Signature
library.assets.register
Register a media URL returned by fal storage. Replace the sample URL with your uploaded media URL.Signature
library.assets.removeTag
Remove a tag assignment without deleting the tag or asset.Signature
library.assets.retrieve
Read asset metadata using its library assetRecordId.Signature
library.assets.setFavorite
Set an asset’s favorite state using its assetRecordId.Signature
library.assets.tags
Read the tags assigned to an asset record.Signature
library.assets.updatePrompt
Update an uploaded asset’s prompt with 1–2,000 characters. Generated assets do not support this operation.Signature
library.characters.checkIdentifier
Normalize a proposed character identifier and check availability. Creation can still fail if another request takes it first.Signature
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
library.characters.references
Read reference image URLs and asset record IDs. Exclude entries with isCover when saving the reference list.Signature
library.characters.update
Replace a character name, description, and complete reference list. Character identifiers cannot be changed.Signature
library.collections.addAsset
Add an asset to a manual collection or smart entity gallery. Use the assetRecordId. This does not change defining references.Signature
library.collections.create
Create a manual collection or a smart collection with filters.Signature
library.collections.delete
Delete a collection or smart entity through the shared product operation. This does not delete its source assets.Signature
library.collections.list
List collections with offset pagination. includeCharacters preserves character inclusion. Set includeSmartEntities to true to include all five entity types.Signature
library.collections.move
Move a collection under a parent. Use null to move it to the root.Signature
library.collections.removeAsset
Remove a manual collection membership or smart entity gallery link. Assets, defining references, and recorded generation usage are preserved.Signature
library.collections.setFavorite
Set a collection or smart entity’s favorite state.Signature
library.collections.update
Update collection metadata or filters. Use null to clear nullable fields.Signature
library.entities.addAsset
Link an existing asset to an entity gallery. This does not change its defining reference images.Signature
library.entities.checkHandle
Normalize a handle and check availability across all five types. Set excludeId when editing. Availability does not reserve the handle.Signature
library.entities.create
Create any smart entity type with one to twenty defining references. Characters require a description and reject custom metadata.Signature
library.entities.delete
Delete any smart entity type through the shared product operation. Source assets are preserved.Signature
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
library.entities.listAssets
Read associated media with offset pagination. Set includeReferences to include images whose only association is defining reference membership.Signature
library.entities.removeAsset
Remove a manual gallery link without deleting the asset. Recorded generation usage and defining reference images are preserved.Signature
library.entities.resolve
Resolve one to 100 handles within the account. Unknown handles are omitted. Use types to restrict the matching entity types.Signature
library.entities.retrieve
Read an entity and its defining reference-image URLs. The references exclude its associated-media gallery.Signature
library.entities.setFavorite
Set the favorite state for any smart entity type.Signature
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
library.tags.create
Create a tag. Names are trimmed and stored in lowercase.Signature
library.tags.delete
Delete a tag and its asset assignments. This does not delete assets.Signature
library.tags.list
List available asset tags. System tags are excluded.Signature
library.tags.update
Change a tag name or color. Tag names must be unique within the account.Signature
Skills
skills.checkForUpdates
Check an imported skill against its repository default branch. Custom and detached skills cannot check for updates.Signature
skills.create
Create a custom skill. Names use lowercase letters, digits, and hyphens. presetClash reports a matching fal skill.Signature
skills.importFromGithub
Import a skill from a public GitHub repository. Script-based skills are unsupported.Signature
skills.list
List fal skills and your installed skills. Disabled and shadowed flags explain which skills are available.Signature
skills.previewImport
Inspect a public GitHub skill before importing it. Check scripts and name conflicts before continuing.Signature
skills.retrieve
Read a visible fal or installed skill by ID.Signature
skills.save
Replace custom skill content. Saving an imported skill detaches its GitHub source and disables source updates.Signature
skills.setEnabled
Enable or disable one skill. Pass its origin and ID from skills.list. The account-level skills switch still applies.Signature
skills.uninstall
Remove an installed user skill and its disabled preference entry. Fal skills cannot be uninstalled.Signature
skills.update
Update an imported skill from its repository default branch. Replaces its body, references, assets, and source commit.Signature