Vertex AI Generate Background
Use Vertex AI Generate Background transformation to generate a background scene around the main foreground object with the given textual description (or text prompt) of the required scene using Google's Imagen model.
Enabling the Vertex AI add-on is a must for using this transformation.
Params
Background Prompt (p
)
Describe the background scene in words that you want to generate. The value needs to be encoded in base64 when used directly in the URL. You can describe the input in plain text.
- Original Image
- Background Generation with Prompt
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [],
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
},
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
),
filePath = "images/transformation/lady.jpeg",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/lady.jpeg",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
],
"filePath" => "images/transformation/lady.jpeg",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
?>
Background Prompt: a horizontal road beside a garden
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu)/images/transformation/lady.jpeg"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu"}]}],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu)/images/transformation/lady.jpeg
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu"}]}],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu)/images/transformation/lady.jpeg
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu"}]}],
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu)/images/transformation/lady.jpeg
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
{"plugin": "vertexAi", "name": "generateBG", "values": []map[string]interface{}{ {"key": "p", "value": "YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu"},}},
},
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu)/images/transformation/lady.jpeg
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
TransformationObj( plugin = "vertexAi", name = "generateBG", values = hashMapOf( "p" to "YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu"), )
),
filePath = "images/transformation/lady.jpeg",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu)/images/transformation/lady.jpeg
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/lady.jpeg",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
new UrlTransformation(plugin: "vertexAi", name: "generateBG", values: new List<Dictionary<string, string>>() { new Dictionary<string, string>() { { "key", "p" }, { "value", "YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu" } }} )
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu)/images/transformation/lady.jpeg
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
["plugin" => "vertexAi", "name" => "generateBG", "values" => [ [ "key" => "p", "value" => "YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu" ], ], ],
],
"filePath" => "images/transformation/lady.jpeg",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSBob3Jpem9udGFsIHJvYWQgYmVzaWRlIGEgZ2FyZGVu)/images/transformation/lady.jpeg
?>
Guidance Scale (gs
)
This parameter controls how much the model adheres to the text prompt.
Large values increase output and prompt alignment, but may compromise image quality.
- Original Image
- Background Generation with guidance Scale=60 (default)
- Background Generation with guidance Scale=500
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/hand.jpeg"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [],
filePath: "images/transformation/hand.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/hand.jpeg
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [],
filePath: "images/transformation/hand.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/hand.jpeg
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [],
"filePath": "images/transformation/hand.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/hand.jpeg
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
},
"filePath": "images/transformation/hand.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/hand.jpeg
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
),
filePath = "images/transformation/hand.jpeg",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/hand.jpeg
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/hand.jpeg",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/hand.jpeg
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
],
"filePath" => "images/transformation/hand.jpeg",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/hand.jpeg
?>
Prompt: a realistic forest behind a plain field of grass
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz)/images/transformation/hand.jpeg"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz"}]}],
filePath: "images/transformation/hand.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz)/images/transformation/hand.jpeg
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz"}]}],
filePath: "images/transformation/hand.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz)/images/transformation/hand.jpeg
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz"}]}],
"filePath": "images/transformation/hand.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz)/images/transformation/hand.jpeg
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
{"plugin": "vertexAi", "name": "generateBG", "values": []map[string]interface{}{ {"key": "p", "value": "YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz"},}},
},
"filePath": "images/transformation/hand.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz)/images/transformation/hand.jpeg
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
TransformationObj( plugin = "vertexAi", name = "generateBG", values = hashMapOf( "p" to "YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz"), )
),
filePath = "images/transformation/hand.jpeg",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz)/images/transformation/hand.jpeg
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/hand.jpeg",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
new UrlTransformation(plugin: "vertexAi", name: "generateBG", values: new List<Dictionary<string, string>>() { new Dictionary<string, string>() { { "key", "p" }, { "value", "YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz" } }} )
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz)/images/transformation/hand.jpeg
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
["plugin" => "vertexAi", "name" => "generateBG", "values" => [ [ "key" => "p", "value" => "YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz" ], ], ],
],
"filePath" => "images/transformation/hand.jpeg",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz)/images/transformation/hand.jpeg
?>
Prompt: a realistic forest behind a plain field of grass
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz,gs:500)/images/transformation/hand.jpeg"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz"},{"key":"gs","value":"500"}]}],
filePath: "images/transformation/hand.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz,gs:500)/images/transformation/hand.jpeg
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz"},{"key":"gs","value":"500"}]}],
filePath: "images/transformation/hand.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz,gs:500)/images/transformation/hand.jpeg
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz"},{"key":"gs","value":"500"}]}],
"filePath": "images/transformation/hand.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz,gs:500)/images/transformation/hand.jpeg
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
{"plugin": "vertexAi", "name": "generateBG", "values": []map[string]interface{}{ {"key": "p", "value": "YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz"},{"key": "gs", "value": "500"},}},
},
"filePath": "images/transformation/hand.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz,gs:500)/images/transformation/hand.jpeg
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
TransformationObj( plugin = "vertexAi", name = "generateBG", values = hashMapOf( "p" to "YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz","gs" to "500"), )
),
filePath = "images/transformation/hand.jpeg",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz,gs:500)/images/transformation/hand.jpeg
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/hand.jpeg",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
new UrlTransformation(plugin: "vertexAi", name: "generateBG", values: new List<Dictionary<string, string>>() { new Dictionary<string, string>() { { "key", "p" }, { "value", "YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz" } }, new Dictionary<string, string>() { { "key", "gs" }, { "value", "500" } }} )
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz,gs:500)/images/transformation/hand.jpeg
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
["plugin" => "vertexAi", "name" => "generateBG", "values" => [ [ "key" => "p", "value" => "YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz" ], [ "key" => "gs", "value" => "500" ], ], ],
],
"filePath" => "images/transformation/hand.jpeg",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:YSByZWFsaXN0aWMgZm9yZXN0IGJlaGluZCBhIHBsYWluIGZpZWxkIG9mIGdyYXNz,gs:500)/images/transformation/hand.jpeg
?>
Same background prompt
with different guidance scale
value will generate different outcome.
Negative prompt (np
)
The negative prompt may help to avoid certain items, attributes, styles, or visual preferences that you do not want in the generated background.
- Original Image
- Background Generation with Prompt
- Background Generation with Prompt and Negative Prompt
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [],
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
},
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
),
filePath = "images/transformation/lady.jpeg",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/lady.jpeg",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
],
"filePath" => "images/transformation/lady.jpeg",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg
?>
Background Prompt: Venice canals under a bridge in a boat
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ)/images/transformation/lady.jpeg"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ"}]}],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ)/images/transformation/lady.jpeg
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ"}]}],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ)/images/transformation/lady.jpeg
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ"}]}],
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ)/images/transformation/lady.jpeg
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
{"plugin": "vertexAi", "name": "generateBG", "values": []map[string]interface{}{ {"key": "p", "value": "VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ"},}},
},
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ)/images/transformation/lady.jpeg
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
TransformationObj( plugin = "vertexAi", name = "generateBG", values = hashMapOf( "p" to "VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ"), )
),
filePath = "images/transformation/lady.jpeg",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ)/images/transformation/lady.jpeg
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/lady.jpeg",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
new UrlTransformation(plugin: "vertexAi", name: "generateBG", values: new List<Dictionary<string, string>>() { new Dictionary<string, string>() { { "key", "p" }, { "value", "VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ" } }} )
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ)/images/transformation/lady.jpeg
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
["plugin" => "vertexAi", "name" => "generateBG", "values" => [ [ "key" => "p", "value" => "VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ" ], ], ],
],
"filePath" => "images/transformation/lady.jpeg",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ)/images/transformation/lady.jpeg
?>
Background Prompt: french riviera ultra realistic 4k
Negative Prompt: Worst quality, Normal quality, Low quality, Low res, Blurry, Jpeg artifacts, Grainy, Overexposed
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ,np:V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk)/images/transformation/lady.jpeg"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ"},{"key":"np","value":"V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk"}]}],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ,np:V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk)/images/transformation/lady.jpeg
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ"},{"key":"np","value":"V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk"}]}],
filePath: "images/transformation/lady.jpeg",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ,np:V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk)/images/transformation/lady.jpeg
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ"},{"key":"np","value":"V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk"}]}],
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ,np:V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk)/images/transformation/lady.jpeg
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
{"plugin": "vertexAi", "name": "generateBG", "values": []map[string]interface{}{ {"key": "p", "value": "VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ"},{"key": "np", "value": "V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk"},}},
},
"filePath": "images/transformation/lady.jpeg",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ,np:V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk)/images/transformation/lady.jpeg
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
TransformationObj( plugin = "vertexAi", name = "generateBG", values = hashMapOf( "p" to "VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ","np" to "V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk"), )
),
filePath = "images/transformation/lady.jpeg",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ,np:V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk)/images/transformation/lady.jpeg
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/lady.jpeg",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
new UrlTransformation(plugin: "vertexAi", name: "generateBG", values: new List<Dictionary<string, string>>() { new Dictionary<string, string>() { { "key", "p" }, { "value", "VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ" } }, new Dictionary<string, string>() { { "key", "np" }, { "value", "V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk" } }} )
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ,np:V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk)/images/transformation/lady.jpeg
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
["plugin" => "vertexAi", "name" => "generateBG", "values" => [ [ "key" => "p", "value" => "VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ" ], [ "key" => "np", "value" => "V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk" ], ], ],
],
"filePath" => "images/transformation/lady.jpeg",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:VmVuaWNlIGNhbmFscyB1bmRlciBhIGJyaWRnZSBpbiBhIGJvYXQ,np:V29yc3QgcXVhbGl0eSwgTm9ybWFsIHF1YWxpdHksIExvdyBxdWFsaXR5LCBMb3cgcmVzLCBCbHVycnksIEpwZWcgYXJ0aWZhY3RzLCBHcmFpbnksIE92ZXJleHBvc2Vk)/images/transformation/lady.jpeg
?>
Seed (s
)
A number (default is 22) influencing the generated background. Change it for varied results. Pick any number from 0 to 4,294,967,295.
- Original Image
- Background Generation with seed value S=420
- Background Generation with seed value S=1000
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/sofa.png"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [],
filePath: "images/transformation/sofa.png",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/sofa.png
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [],
filePath: "images/transformation/sofa.png",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/sofa.png
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [],
"filePath": "images/transformation/sofa.png",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/sofa.png
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
},
"filePath": "images/transformation/sofa.png",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/sofa.png
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
),
filePath = "images/transformation/sofa.png",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/sofa.png
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/sofa.png",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/sofa.png
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
],
"filePath" => "images/transformation/sofa.png",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/sofa.png
?>
Background Prompt: Cozy high end apartment with overlooking a cyberpunk city, ultra realistic, 8k
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:420)/images/transformation/sofa.png"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr"},{"key":"s","value":"420"}]}],
filePath: "images/transformation/sofa.png",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:420)/images/transformation/sofa.png
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr"},{"key":"s","value":"420"}]}],
filePath: "images/transformation/sofa.png",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:420)/images/transformation/sofa.png
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr"},{"key":"s","value":"420"}]}],
"filePath": "images/transformation/sofa.png",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:420)/images/transformation/sofa.png
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
{"plugin": "vertexAi", "name": "generateBG", "values": []map[string]interface{}{ {"key": "p", "value": "Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr"},{"key": "s", "value": "420"},}},
},
"filePath": "images/transformation/sofa.png",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:420)/images/transformation/sofa.png
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
TransformationObj( plugin = "vertexAi", name = "generateBG", values = hashMapOf( "p" to "Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr","s" to "420"), )
),
filePath = "images/transformation/sofa.png",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:420)/images/transformation/sofa.png
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/sofa.png",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
new UrlTransformation(plugin: "vertexAi", name: "generateBG", values: new List<Dictionary<string, string>>() { new Dictionary<string, string>() { { "key", "p" }, { "value", "Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr" } }, new Dictionary<string, string>() { { "key", "s" }, { "value", "420" } }} )
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:420)/images/transformation/sofa.png
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
["plugin" => "vertexAi", "name" => "generateBG", "values" => [ [ "key" => "p", "value" => "Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr" ], [ "key" => "s", "value" => "420" ], ], ],
],
"filePath" => "images/transformation/sofa.png",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:420)/images/transformation/sofa.png
?>
Background Prompt: Cozy high end apartment with overlooking a cyberpunk city, ultra realistic, 8k
- URL
- React
- JavaScript
- Node.js
- Python
- Golang
- Kotlin
- C#
- PHP
<PixelBinImage
url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:1000)/images/transformation/sofa.png"
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr"},{"key":"s","value":"1000"}]}],
filePath: "images/transformation/sofa.png",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:1000)/images/transformation/sofa.png
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "dummy-cloudname",
zone: "FIDrmb",
version: "v2",
transformations: [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr"},{"key":"s","value":"1000"}]}],
filePath: "images/transformation/sofa.png",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:1000)/images/transformation/sofa.png
from pixelbin.utils.url import obj_to_url
obj = {
"cloudName": "dummy-cloudname",
"zone": "FIDrmb",
"version": "v2",
"transformations": [{"name":"generateBG","plugin":"vertexAi","values":[{"key":"p","value":"Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr"},{"key":"s","value":"1000"}]}],
"filePath": "images/transformation/sofa.png",
"baseUrl": "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:1000)/images/transformation/sofa.png
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url"
)
func main() {
obj := map[string]interface{}{
"cloudName": "dummy-cloudname",
"zoneSlug": "FIDrmb",
"version": "v2",
"transformations": []map[string]interface{}{
{"plugin": "vertexAi", "name": "generateBG", "values": []map[string]interface{}{ {"key": "p", "value": "Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr"},{"key": "s", "value": "1000"},}},
},
"filePath": "images/transformation/sofa.png",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:1000)/images/transformation/sofa.png
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "dummy-cloudname",
zone = "FIDrmb",
version = "v2",
transformation = arrayListOf(
TransformationObj( plugin = "vertexAi", name = "generateBG", values = hashMapOf( "p" to "Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr","s" to "1000"), )
),
filePath = "images/transformation/sofa.png",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:1000)/images/transformation/sofa.png
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "dummy-cloudname",
filePath: "images/transformation/sofa.png",
zone: "FIDrmb",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
new UrlTransformation(plugin: "vertexAi", name: "generateBG", values: new List<Dictionary<string, string>>() { new Dictionary<string, string>() { { "key", "p" }, { "value", "Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr" } }, new Dictionary<string, string>() { { "key", "s" }, { "value", "1000" } }} )
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:1000)/images/transformation/sofa.png
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
"cloudName" => "dummy-cloudname",
"zone" => "FIDrmb",
"version" => "v2",
"options" => [],
"transformations" => [
["plugin" => "vertexAi", "name" => "generateBG", "values" => [ [ "key" => "p", "value" => "Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr" ], [ "key" => "s", "value" => "1000" ], ], ],
],
"filePath" => "images/transformation/sofa.png",
"baseUrl" => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/vertexAi.generateBG(p:Q296eSBoaWdoIGVuZCBhcGFydG1lbnQgd2l0aCBvdmVybG9va2luZyBhIGN5YmVycHVuayBjaXR5LCB1bHRyYSByZWFsaXN0aWMsIDhr,s:1000)/images/transformation/sofa.png
?>