Skip to main content

synth-ai

Typed Python 3.11+ client for the Synth public API v1. Version 0.30.0 (launch contract 3).

  1. Install the qualified package: pip install synth-ai.
  2. Sign in: synth login.
  3. Launch and wait for a run:
from synth_ai import SynthClient

with SynthClient() as client:
    run = client.swarms.run("Compare retrieval methods", budget="2.00")
    print(run.run_id, run.state)

Set SYNTH_API_KEY and optionally SYNTH_API_BASE_URL. AsyncSynthClient provides the same methods with await.

pip install synth-ai[mcp] adds the synth-ai-mcp stdio server. Use synth --help for the CLI and synth login for browser authorization.

Upload a task file and include its immutable reference at launch:

from synth_ai.models import InputFile, RunInputs

with SynthClient() as client:
    file = client.swarms.upload_file("task.md")
    run = client.swarms.run(
        "Follow the uploaded task", budget="2.00",
        inputs=RunInputs(files=[InputFile(
            file_id=file.file_id,
            revision_id=file.revision_id,
            digest_sha256=file.digest_sha256,
        )]),
    )

Uploads accept UTF-8 text, Markdown and JSON, at most 32 MiB per file and per launch, with at most 32 references. upload_text and MCP swarms_upload_file accept up to 32 KiB inline. synth swarms upload task.md uses the full upload protocol. Pool resources use the public selector pool. update_labels(run_id, labels, expected_revision=...) refuses stale revisions.

Choose a published run profile. Omit profile to let Core use its default.

with SynthClient() as client:
    print(client.swarms.profiles())
    run = client.swarms.run("Solve this task", budget="2.00", profile="swarms-v2")
synth swarms profiles
synth swarms run "Solve this task" --budget 2.00 --profile swarms-v2
synth swarms profiles --research-task published-task
synth swarms run "Improve the policy" --budget 2.00 --profile fork-flush --research-task published-task

The catalog reports each profile's description, revision, supported routing and caller-specific availability. Research profiles require a published task and its approval. Every run retains its exact resolved profile in run.profile. New configurations are published profiles; arbitrary actor overrides are not part of the public API.

See Swarms for routing, lifecycle and transfer details. Version 0.29.0 replaces the public program, method and profile_overrides launch fields with profile and, for research profiles, research_task.

Version 0.30.0 uses strict, frozen records, named nested models, and enum values. Use CompletionMilestone.FINISHED for a fully settled wait, run.finished to inspect it, and run.known_state when a known state enum is useful. Unknown server states remain available as run.state. See typing and protocol standards for migration details and the ty/Ruff checks.

Runnable workflows are in examples; protocol details define compatibility, recovery, pagination and diagnostic guarantees.

Metadata

Release files for synth-ai 0.31.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synth-ai 0.31.0
File Size Uploaded Provenance Actions
synth_ai-0.31.0.tar.gz 232.1 kB With provenance Details for synth_ai-0.31.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for synth-ai 0.31.0
File Interpreter ABI Platform Actions
synth_ai-0.31.0-py3-none-any.whl Python 3 none any Details for synth_ai-0.31.0-py3-none-any.whl

Total release size: 294.9 kB

Release files / synth_ai-0.31.0.tar.gz

Download URL synth_ai-0.31.0.tar.gz
Size 232.1 kB
Tags Source
SHA-256 checksum
How to use checksums
df1a115fa7a9a57f2516bbb80ac197930cb0bb4e95383cac66c147050450b5e3
BLAKE2b-256 checksum
How to use checksums
5828f9bef36898cdcd0a451e785d5299687bc54601357a6f79dbae190b2be0ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / synth_ai-0.31.0-py3-none-any.whl

Download URL synth_ai-0.31.0-py3-none-any.whl
Size 62.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
167d252a11805fed8a789860e56c85538376d0b9e2b87d7a857ef663d178c344
BLAKE2b-256 checksum
How to use checksums
37f392afde088152ec7c484becf84cbc92e7f4eda4582a2eb3f10d334c2a0491
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for synth-ai 0.31.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for synth_ai-0.31.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.31.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page