{
"ok": true,
"eras": [
"medieval",
"frontier",
"victorian",
"midcentury",
"contemporary",
"nearfuture",
"farfuture"
],
"structures": [
"lamp",
"sign",
"gate",
"bridge",
"well",
"stall",
"bench",
"crate",
"barrel",
"tree",
"bush",
"rubble",
"cargoPod",
"fountain",
"statue",
"obelisk",
"watchtower",
"tent",
"campfire",
"shrine",
"crystal",
"windmill",
"bollardRow",
"busShelter",
"fence",
"wall"
],
"presets": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23"
],
"free": {
"terrainSize": 128,
"detail": 0
},
"pro": {
"terrainSize": 512,
"detail": 1
},
"keyed": true
}
curl --location --request GET 'https://zylalabs.com/api/15564/forge+procedural+3d+and+worlds+api/41896/catalog' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meshes": 25,
"triangles": 14599,
"materials": [
"wall",
"wallAlt",
"wallDark",
"trim",
"accent",
"roof",
"roofAlt",
"stone",
"wood",
"woodDark",
"metal",
"metalDark",
"glass",
"glassDark",
"emissive1",
"emissive2",
"foliage",
"fabric",
"dirt",
"ground",
"interior",
"roomLit",
"wallIn",
"floorIn",
"ceiling",
"furn",
"furnAlt",
"doorLeaf",
"fl0",
"fl1",
"fl2",
"fl3",
"fl4",
"fl5",
"fl6",
"fl7",
"fl8",
"fl9",
"fl10",
"fl11",
"fl12",
"fl13",
"fl14",
"fl15",
"fl16",
"fl17",
"fl18",
"fl19",
"grass"
],
"bounds": {
"min": [
-0.7685850262641907,
-0.054999999701976776,
-0.8294904828071594
],
"max": [
18.39312171936035,
11.140000343322754,
14.829490661621094
],
"size": [
19.161706745624542,
11.19500034302473,
15.658981144428253
],
"center": [
8.81226834654808,
5.542500171810389,
7.000000089406967
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15564/forge+procedural+3d+and+worlds+api/41897/house?seed=castle-rock&era=medieval&levels=2&bedrooms=3&format=json' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meshes": 3,
"triangles": 80,
"materials": [
"wall",
"wallAlt",
"wallDark",
"trim",
"accent",
"roof",
"roofAlt",
"stone",
"wood",
"woodDark",
"metal",
"metalDark",
"glass",
"glassDark",
"emissive1",
"emissive2",
"foliage",
"fabric",
"dirt",
"ground",
"interior",
"roomLit",
"wallIn",
"floorIn",
"ceiling",
"furn",
"furnAlt",
"doorLeaf"
],
"bounds": {
"min": [
-0.24,
0,
-0.22825356391083687
],
"max": [
1.3,
4.358096965887973,
0.22825356391083687
],
"size": [
1.54,
4.358096965887973,
0.45650712782167374
],
"center": [
0.53,
2.1790484829439865,
0
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15564/forge+procedural+3d+and+worlds+api/41898/structure?type=lamp&seed=street-7&format=json' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"seed": "ironvale",
"size": 256,
"metresPerPixel": 93.75,
"heightMinM": -641.2,
"heightMaxM": 1294.7,
"seaLevelM": 0.3,
"biomes": 29
}
curl --location --request GET 'https://zylalabs.com/api/15564/forge+procedural+3d+and+worlds+api/41899/terrain?seed=ironvale&size=256&layer=json' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"biome": "ammoniaTundra",
"kind": "tree",
"species": "Brylepis nigra",
"vertices": 3087,
"triangles": 4165,
"biomes": [
"temperateBroadleaf",
"borealTaiga",
"tropicalRainforest",
"savanna",
"hotDesert",
"coldSteppe",
"alpine",
"mangroveDelta",
"peatBog",
"kelpShelf",
"coralReef",
"volcanicGlass",
"mineralGeyser",
"fungalDeep",
"petrifiedStand",
"leyShatter",
"frozenSea",
"karst",
"columnarBasalt",
"yardang",
"hoodoo",
"patternedGround",
"luminousBog",
"tidalFlat",
"mesa",
"lavaField",
"mushroomForest",
"crystalGarden",
"violetHeath",
"bloodMarsh",
"glassSea",
"voidGarden",
"fleshReef",
"clockworkGrove",
"emberCanopy",
"auroraTundra",
"boneOrchard",
"lowGravSpire",
"highGravMat",
"ammoniaTundra",
"ashfall"
]
}
curl --location --request GET 'https://zylalabs.com/api/15564/forge+procedural+3d+and+worlds+api/41900/biota?seed=fern-3&kind=tree&format=json' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"seed": 5,
"regions": 6,
"factions": 4,
"level": 5,
"world": {
"meta": {
"seed": 5,
"name": "Marholt Verge Reach",
"createdWithVersion": "0.1.0",
"revision": 0
},
"regions": {
"reg-0": {
"id": "reg-0",
"name": "Othgrave Deep",
"biome": "verdance",
"danger": 0.20272821016144005,
"prosperity": 0.7427797725982963
},
"reg-1": {
"id": "reg-1",
"name": "Normere Basin",
"biome": "glasswood",
"danger": 0.618101324858144,
"prosperity": 0.5590273683238774
},
"reg-2": {
"id": "reg-2",
"name": "Wolddros",
"biome": "ironpeaks",
"danger": 0.5912465350655839,
"prosperity": 0.5398454258753919
},
"reg-3": {
"id": "reg-3",
"name": "Woldmere Basin",
"biome": "saltmarsh",
"danger": 0.5835664601111784,
"prosperity": 0.45346681240247566
},
"reg-4": {
"id": "reg-4",
"name": "Iskvane Deep",
"biome": "dunes",
"danger": 0.510388115849346,
"prosperity": 0.1851083045545965
}
},
"sites": {
"site-0": {
"id": "site-0",
"name": "Othgate Verge",
"kind": "wreck",
"regionId": "reg-0",
"population": 0
},
"site-1": {
"id": "site-1",
"name": "Ashvault",
"kind": "mine",
"regionId": "reg-0",
"population": 0.3741265939515084
},
"site-2": {
"id": "site-2",
"name": "Senthal Verge",
"kind": "bastion",
"regionId": "reg-0",
"population": 0.6052603952554054
},
"site-3": {
"id": "site-3",
"name": "Pelspan",
"kind": "observatory",
"regionId": "reg-0",
"population": 0.22404112390307707
},
"site-4": {
"id": "site-4",
"name": "Market Hollow",
"kind": "observatory",
"regionId": "reg-1",
"population": 0.20293274846915155
}
},
"factions": {
"fac-0": {
"id": "fac-0",
"name": "The Salt Circle",
"adjective": "Salt",
"creed": "the ledger balances or the door stays shut",
"axes": {
"order": -0.30481312004849315,
"tradition": -0.25847184704616666,
"expansion": 0.8605060772970319,
"secrecy": -0.8699330179952085
}
},
"fac-1": {
"id": "fac-1",
"name": "Iskwend Verge Concord",
"adjective": "Gilded",
"creed": "debts outlive the debtor",
"axes": {
"order": 0.4616430480964482,
"tradition": 0.06818186026066542,
"expansion": -0.9253236586228013,
"secrecy": -0.5907748704776168
}
},
"fac-2": {
"id": "fac-2",
"name": "The Assembly of Normere Basin",
"adjective": "Pale",
"creed": "silence is the only honest currency",
"axes": {
"order": -0.24721279833465815,
"tradition": -0.42826963355764747,
"expansion": 0.8829429317265749,
"secrecy": -0.441923666279763
}
},
"fac-3": {
"id": "fac-3",
"name": "The Cohort of Woldmere Basin",
"adjective": "Ashen",
"creed": "every wreck is a warning left for us",
"axes": {
"order": 0.7626472688280046,
"tradition": -0.2505032913759351,
"expansion": 0.3208065377548337,
"secrecy": -0.8344379346817732
}
}
},
"npcs": {
"npc-0": {
"id": "npc-0",
"name": "Ghervenis Wickmark",
"role": "outlaw",
"factionId": null,
"homeSiteId": "site-0"
},
"npc-1": {
"id": "npc-1",
"name": "Vasolaus Quillrun",
"role": "outlaw",
"factionId": "fac-1",
"homeSiteId": "site-0"
},
"npc-2": {
"id": "npc-2",
"name": "Zebib Mossmark",
"role": "engineer",
"factionId": "fac-0",
"homeSiteId": "site-1"
},
"npc-3": {
"id": "npc-3",
"name": "Lostena Ashridge",
"role": "engineer",
"factionId": "fac-1",
"homeSiteId": "site-1"
},
"npc-4": {
"id": "npc-4",
"name": "Vasquel Hollowbourne",
"role": "engineer",
"factionId": "fac-3",
"homeSiteId": "site-1"
}
}
},
"quests": [
{
"id": "line-3",
"seed": 2962560684,
"title": "The Mirthra Bellgate’s List",
"premise": "Mirthra Bellgate has a list with Hesrica Saltbourne at the bottom of it and no one willing to work down to that name.",
"arcId": "bounty-ladder"
},
{
"id": "line-4",
"seed": 3318907087,
"title": "Hungry Signal",
"premise": "Something is working Normere Basin and Thomibo Wickstead wants it stopped before the season turns.",
"arcId": "hunt"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15564/forge+procedural+3d+and+worlds+api/41901/world?seed=5' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 锻造程序化三维模型与世界 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
基于种子的游戏程序化内容:3D 房屋和建筑(GLB/OBJ)、地形高度图(PNG)、来自 41 种生物群系的树木和生物,以及包含派系、人物和任务的完整奇幻世界(JSON)。生成内容可用于你自己的项目,包括商业项目;不得将其作为素材包或数据集转售,也不得用于训练 AI 模型
是的。输出可用于您自己的游戏、电影、渲染作品和宣传活动,包括商业用途。您不得将其单独转售为素材包或数据集,也不得用其训练人工智能模型或构建竞争性生成器】【。
是的。每个端点都是确定性的:相同的种子和参数总是会返回相同的房屋、地形、生物或世界。
房屋、建筑、树木和生物使用 GLB(二进制 glTF 2.0)和 OBJ;地形使用 PNG 地图和 JSON;世界使用 JSON
Catalog 返回生成器支持的类别,包括房屋年代、结构类型、生物群系和地形预设。调用生成接口前,请使用这些列表验证请求值。预设以标识符表示,例如 `"0"`、`"1"` 和 `"21"`。 .
JSON 摘要描述生成的几何体而无需模型文件。典型字段包括 `meshes`、`triangles`、`materials` 和 `bounds`。bounds 对象提供 `min`、`max`、`size` 和 `center` 坐标,这些坐标有助于放置、缩放和性能检查
提供一个种子并选择受支持的生成选项,例如房屋建筑时代或建筑类型。房屋时代包括中世纪、拓荒时期、维多利亚时代、世纪中期、当代、近未来和遥远未来。建筑类型包括大门、桥梁、水井、树木、神龛、墙体等
Terrain 可将高度图、颜色图、混合图或预览图以 PNG 格式返回,也可将地形统计信息以 JSON 格式返回。JSON 统计信息可能包括 `size`、`metresPerPixel`、`heightMinM`、`heightMaxM`、`seaLevelM` 和生成的 `biomes` 数量
`size` 是地图以像素为单位的尺寸,而 `metresPerPixel` 表示其世界比例分辨率。`heightMinM` 和 `heightMaxM` 定义以米为单位的海拔范围,`seaLevelM` 标示水位参考高度,而 `biomes` 报告结果中包含的生物群系区域数量。
Biota 从 41 种支持的生物群系之一生成程序化树木或生物。JSON 摘要可包含所选的 `biome`、`kind`、生成的 `species`、`vertices` 和 `triangles`。支持的环境范围从温带森林和沙漠到珊瑚礁、熔岩地带、水晶花园和外星生物群系
World 返回包含地区、派系、地点、人物、野兽、历史和任务公告栏的结构化 JSON。顶层响应可以包含 `regions`、`factions` 和 `level` 等计数;嵌套的 `world` 对象包含元数据、命名地区、生物群系标签、危险程度、繁荣程度和其他世界构建记录】【。
每个区域都以诸如 `reg-0` 的标识符存储,并包含 `id`、`name`、`biome`、`danger` 和 `prosperity` 等字段。`danger` 和 `prosperity` 是标准化数值,通常介于 0 到 1 之间,适用于游戏逻辑、筛选、地图显示或任务生成。