Skip to main content

Meta AI API

Fork of meta-ai-api with support for tool-calling

A Python package for interacting with the Meta AI API, including authentication, messaging, and tool-call capabilities.


Features

  • Normal Text based chat
  • Tool-call support for advanced integrations

Installation

pip install meta_ai_api_tool_call

Usage

Basic Example

from meta_ai_api_tool_call import MetaAI

# For unauthenticated (public) access
ai = MetaAI()
response = ai.prompt("Hello Meta!")
print(response)

# For authenticated access (recommended for full features)
ai = MetaAI(fb_email="your_fb_email", fb_password="your_fb_password")
response = ai.prompt("Hello with login!")
print(response)

Tool Call Example

from meta_ai_api_tool_call import MetaAI

def add(a: int, b: int) -> int:
    """Adds two numbers."""
    return a + b

ai = MetaAI()
tools = [add]
response = ai.prompt("Use the add tool to add 2 and 3", tools=tools)
print(response)

Contributing

Contributions are welcome! Please open issues or pull requests on GitHub.


License

Follow the meta-ai and Meta's terms and policies for usage.

Disclaimer

This project is not affiliated with Meta, Facebook, or their partners. Use at your own risk and comply with all applicable terms of service.

Metadata

Release files for meta-ai-api-tool-call 0.1.3

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

Source distribution (sdist)

Source distribution for meta-ai-api-tool-call 0.1.3
File Size Uploaded Provenance Actions
meta_ai_api_tool_call-0.1.3.tar.gz 11.3 kB Without provenance Details for meta_ai_api_tool_call-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for meta-ai-api-tool-call 0.1.3
File Interpreter ABI Platform Actions
meta_ai_api_tool_call-0.1.3-py3-none-any.whl Python 3 none any Details for meta_ai_api_tool_call-0.1.3-py3-none-any.whl

Total release size: 21.7 kB

Release files / meta_ai_api_tool_call-0.1.3.tar.gz

Download URL meta_ai_api_tool_call-0.1.3.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bfd170ceaabf282e69c31817798339aa3f3a871d5c2dfae665af5315f53cf000
BLAKE2b-256 checksum
How to use checksums
7a67917455e485c834131252a8cd88b9be5ac30eda5b640685206399d20e2e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / meta_ai_api_tool_call-0.1.3-py3-none-any.whl

Download URL meta_ai_api_tool_call-0.1.3-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ac5375432d099e6893367a3e91b8a1e78a62e49ac49ec8b6576460c1d03bee1
BLAKE2b-256 checksum
How to use checksums
be98067c54752e4c9ca29f55e816883dfab9a794e6b3d20405a3c9a2b22f468b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for meta-ai-api-tool-call 0.1.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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