- Attribution by image embedding
Send the embedding of a generated image, computed in your environment by the Bria attribution model. Only the irreversible vector reaches Bria. See the bria-attribution repository.
Send one request per image embedding.
Legacy request format (deprecated): requests that send model_version and a list of embeddings (embeddings_base64 as an array, with optional embeddings_uid and model_name) are still accepted. Use model in new integrations.
The Bria image model that produced the image, as model_name:version.
| Value | Model |
|---|---|
image_fibo:2 | Fibo 2 |
image_fibo_turbo:2 | Fibo 2 Turbo |
image_fibo:1 | Fibo 1 |
image_fibo_edit:1 | Fibo Edit |
image_eraser:1 | Eraser |
image_expansion:1 | Image expansion |
image_increase_res:1 | Increase resolution |
image_rmbg:1 | Remove background (RMBG 2.0) |
image_rmbg:3 | Remove background (RMBG 3.0) |
image_replace_bg:1 | Replace background 1 |
image_replace_bg:2 | Replace background 2 |
Base64-encoded embedding of the image, produced by the Bria attribution model in your environment.
Optional. Your identifier for this embedding; use a new value per asset. Bria generates one if omitted.
Optional. A name for the application, integration or end customer that produced the asset. Stored with the attribution record.
Specifies the response mode. Optional.
- When
false(default), the API returns202with arequest_idandstatus_urlright away. - When
true, the API returns200with the outcome once the attribution request is queued.
Optional URL for receiving the result via webhook when the async job completes. See webhooks.
from bria_client import BriaSyncClient
client = BriaSyncClient() # reads BRIA_API_TOKEN
job = client.submit(
endpoint="image/attribution/by_embedding",
payload={
"model": "image_fibo:2",
"embeddings_base64": "<embeddings_base64>",
"agent": "my-app",
},
)
result = client.poll(job, interval=2, timeout=120)
print(result.result){ "result": { "content": "Attribution triggered successfully" }, "request_id": "string" }