Skip to content

seed_media_persist_url

Persist a provider output URL as a durable artifact and return its ArtifactRef.

Use when a generation result has an artifact with id ‘provider-url’ and a persistence_error, before the URL expires (2h audio, 24h image/video/3D). Non-BytePlus hosts are rejected.

Requirement Value
Registration Always registered; no provider credentials required.
Execution Foreground or background
Required permission media:upload

This site lists the full configured capability surface, not the tools enabled on your particular server. Use model discovery and job discovery to check your connection. Credentials are server configuration, never tool arguments.

Ask your connected AI client to use seed_media_persist_url for the operation you want. The client constructs the arguments and handles tool calls. Review its proposed operation before approving anything billable. For a non-billable introduction, start with discovery without generation.

Use a direct foreground call for lightweight operations. Submit through ark_job_submit when output persistence or a large download may take time. The full arguments still include the input wrapper.

Match the input fields below and the full JSON Schema. See the worked examples for this capability and Background Execution for job/result handling.

The MCP arguments object wraps these fields as {"input": {...}}.

Field Type Required Description and constraints
media_type “image”, “audio”, “video”, “three_d” Yes Media type of the output.
mime_type string Yes Expected MIME type (e.g. video/mp4); a specific provider Content-Type takes precedence.; minLength: 3; maxLength: 128
source_expires_at string or null No ISO-8601 URL expiry, from ArtifactRef.source_expires_at; recorded on the new artifact.; Default: null
url string Yes Provider output URL, usually the uri of an ArtifactRef with id ‘provider-url’. BytePlus hosts only.; minLength: 1; maxLength: 8192
Field Type Required Description and constraints
artifact ArtifactRef Yes The durable artifact.

Field types named above refer to these shared definitions. Optional/null fields, enum choices and bounds are retained in the complete schemas below. Schema validation is followed by runtime capability and security checks.

SeedMediaPersistUrlInput
Field Type Required Description and constraints
media_type “image”, “audio”, “video”, “three_d” Yes Media type of the output.
mime_type string Yes Expected MIME type (e.g. video/mp4); a specific provider Content-Type takes precedence.; minLength: 3; maxLength: 128
source_expires_at string or null No ISO-8601 URL expiry, from ArtifactRef.source_expires_at; recorded on the new artifact.; Default: null
url string Yes Provider output URL, usually the uri of an ArtifactRef with id ‘provider-url’. BytePlus hosts only.; minLength: 1; maxLength: 8192
Input schema, including the MCP wrapper
{
"$defs": {
"SeedMediaPersistUrlInput": {
"description": "Input model for ``seed_media_persist_url``.",
"properties": {
"media_type": {
"description": "Media type of the output.",
"enum": [
"image",
"audio",
"video",
"three_d"
],
"type": "string"
},
"mime_type": {
"description": "Expected MIME type (e.g. video/mp4); a specific provider Content-Type takes precedence.",
"maxLength": 128,
"minLength": 3,
"type": "string"
},
"source_expires_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "ISO-8601 URL expiry, from ArtifactRef.source_expires_at; recorded on the new artifact."
},
"url": {
"description": "Provider output URL, usually the uri of an ArtifactRef with id 'provider-url'. BytePlus hosts only.",
"maxLength": 8192,
"minLength": 1,
"type": "string"
}
},
"required": [
"url",
"media_type",
"mime_type"
],
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"input": {
"$ref": "#/$defs/SeedMediaPersistUrlInput"
}
},
"required": [
"input"
],
"type": "object"
}
Output schema, including nested definitions
{
"$defs": {
"ArtifactPersistenceIssue": {
"description": "Safe explanation for a provider output that could not be persisted.",
"properties": {
"artifact_limit_bytes": {
"description": "Maximum durable artifact size in bytes.",
"title": "Artifact Limit Bytes",
"type": "integer"
},
"code": {
"description": "Failure category.",
"enum": [
"untrusted_output_host",
"output_too_large",
"invalid_output_mime",
"source_expired",
"download_failed",
"storage_failed"
],
"title": "Code",
"type": "string"
},
"message": {
"description": "Safe failure message (no credentials or URLs).",
"title": "Message",
"type": "string"
},
"retryable": {
"description": "Whether retrying persistence later may succeed.",
"title": "Retryable",
"type": "boolean"
},
"source_url_expires_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "ISO-8601 expiry of the unpersisted provider URL (the artifact uri).",
"title": "Source Url Expires At"
}
},
"required": [
"code",
"message",
"retryable",
"artifact_limit_bytes"
],
"title": "ArtifactPersistenceIssue",
"type": "object"
},
"ArtifactRef": {
"description": "Stable reference to a persisted media artifact.",
"properties": {
"bytes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Size in bytes.",
"title": "Bytes"
},
"created_at": {
"description": "ISO-8601 timestamp of artifact creation.",
"title": "Created At",
"type": "string"
},
"expires_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "ISO-8601 expiry of the stored artifact.",
"title": "Expires At"
},
"export_error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Why the requested local copy was not written (the artifact is unaffected).",
"title": "Export Error"
},
"fallback_data": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Base64 output bytes, only with id 'inline-fallback'.",
"title": "Fallback Data"
},
"id": {
"description": "Unique artifact identifier.",
"title": "Id",
"type": "string"
},
"local_path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Absolute path of the local copy written for output_path/output_dir.",
"title": "Local Path"
},
"media_type": {
"$ref": "#/$defs/MediaType",
"description": "image, audio, video or three_d."
},
"mime_type": {
"description": "MIME type, e.g. image/png.",
"title": "Mime Type",
"type": "string"
},
"persistence_error": {
"anyOf": [
{
"$ref": "#/$defs/ArtifactPersistenceIssue"
},
{
"type": "null"
}
],
"default": null,
"description": "Set when the output was billed but not stored. id is then 'provider-url' (uri is the temporary provider URL; re-persist it with seed_media_persist_url before source_expires_at) or 'inline-fallback' (bytes in fallback_data)."
},
"sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "SHA-256 hex digest.",
"title": "Sha256"
},
"source_expires_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "ISO-8601 expiry of the provider URL.",
"title": "Source Expires At"
},
"uri": {
"description": "MCP resource URI (seed-media://artifacts/{id}).",
"title": "Uri",
"type": "string"
}
},
"required": [
"id",
"uri",
"media_type",
"mime_type",
"created_at"
],
"title": "ArtifactRef",
"type": "object"
},
"MediaType": {
"description": "Logical generated-media categories.",
"enum": [
"image",
"audio",
"video",
"three_d"
],
"title": "MediaType",
"type": "string"
}
},
"description": "Output model for ``seed_media_persist_url``.",
"properties": {
"artifact": {
"$ref": "#/$defs/ArtifactRef",
"description": "The durable artifact."
}
},
"required": [
"artifact"
],
"title": "SeedMediaPersistUrlOutput",
"type": "object"
}
  • Missing tool: check provider credentials and feature flags, then restart the connection.
  • Invalid arguments: keep the correct wrapper and follow current model limits from discovery. A valid schema alone does not prove the chosen model supports the combination.
  • A job completes with an error: inspect the original tool result, not only the outer job status. Never automatically resubmit potentially billable work.
  • Local output writes from jobs require server-configured OUTPUT_ROOTS; HTTP cannot write to a client’s local disk.

See configuration, background execution, and artifact delivery.