Muse MuseConcept
Dashboard

Independent concept built on Meta's Model API. Not an official Meta product.

Upload a file

View on dev.meta.ai (opens in a new tab)

Upload a file for use in inference requests.

POST /files

Upload a file for batch or user-data use.

Request body

Content Type: multipart/form-data

CreateFileRequest

Response

HTTP 200: OK

Content Type: application/json

FileObject

python
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.meta.ai/v1",
    api_key=os.environ["MODEL_API_KEY"],
)

with open("/path/to/image.png", "rb") as f:
    file = client.files.create(
        purpose="user_data",
        file=f,
    )

print(file.model_dump_json(indent=2))

For supported file types, upload examples, and how to reference files in requests, see the Files feature page.

Mirrored from dev.meta.ai/docs/api-reference/files/upload-file (synced Oct 30, 2026). Text and examples © Meta. Live demos run on Muse Muse's key.

Esc

Loading...